From 599c1fc6d33f49a7a1f6881ee07eb624c3238592 Mon Sep 17 00:00:00 2001 From: Alican Erdurmaz Date: Tue, 23 Jan 2024 09:37:50 +0300 Subject: [PATCH] fix: hasRoutes --- refine-nextjs/plugins/auth-provider-google/pages/_app.tsx | 2 +- refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/refine-nextjs/plugins/auth-provider-google/pages/_app.tsx b/refine-nextjs/plugins/auth-provider-google/pages/_app.tsx index 7a4ea5e7..04607a62 100644 --- a/refine-nextjs/plugins/auth-provider-google/pages/_app.tsx +++ b/refine-nextjs/plugins/auth-provider-google/pages/_app.tsx @@ -110,7 +110,7 @@ export type NextPageWithLayout

= NextPage & { - <%_ if (answers["inferencer"] === 'inferencer' || answers["inferencer-headless"] === 'inferencer-headless') { _%> + <%_ if (_app.hasRoutes === true) { _%> resources={[ <%_ if (answers["data-provider"] === 'data-provider-strapi-v4') { _%> { diff --git a/refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx b/refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx index 4182788d..f0d7d940 100644 --- a/refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx +++ b/refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx @@ -110,7 +110,7 @@ export type NextPageWithLayout

= NextPage & { - <%_ if (answers["inferencer"] === 'inferencer' || answers["inferencer-headless"] === 'inferencer-headless') { _%> + <%_ if (_app.hasRoutes === true) { _%> resources={[ <%_ if (answers["data-provider"] === 'data-provider-strapi-v4') { _%> {