diff --git a/services/service-metadata-apps/src/actionsHandler.ts b/services/service-metadata-apps/src/actionsHandler.ts index bde94d6fe2..ae62116b77 100644 --- a/services/service-metadata-apps/src/actionsHandler.ts +++ b/services/service-metadata-apps/src/actionsHandler.ts @@ -527,7 +527,7 @@ async function getAppMenus(ctx) { const context = await getContext(ctx) const appMenus = await transformAppToMenus(ctx, appConfig, mobile, userSession, context); - if(userSession.is_space_admin && appConfig._id && appConfig._id != appConfig.code){ + if (userSession.is_space_admin && appConfig._id && appConfig.code && appConfig._id != appConfig.code) { appMenus.allowEditApp = true; }