Browse Source

fix: handle missing redirects

pull/6616/head
Pranav C 1 year ago
parent
commit
ff726f5ebd
  1. 8
      packages/nc-gui/plugins/state.ts
  2. 1
      packages/nocodb/src/controllers/bulk-data-alias.controller.ts

8
packages/nc-gui/plugins/state.ts

@ -1,4 +1,4 @@
import { Language, LanguageAlias, defineNuxtPlugin, useApi, useGlobal } from '#imports' import { Language, LanguageAlias, defineNuxtPlugin, isEeUI, useApi, useGlobal } from '#imports'
import { loadLocaleMessages, setI18nLanguage } from '~/plugins/a.i18n' import { loadLocaleMessages, setI18nLanguage } from '~/plugins/a.i18n'
/** /**
@ -35,3 +35,9 @@ export default defineNuxtPlugin(async () => {
console.error(e) console.error(e)
} }
}) })
const defaultExport = isEeUI ? defineNuxtPlugin(async () => {}) : statePlugin
export { statePlugin }
export default defaultExport

1
packages/nocodb/src/controllers/bulk-data-alias.controller.ts

@ -10,7 +10,6 @@ import {
Response, Response,
UseGuards, UseGuards,
} from '@nestjs/common'; } from '@nestjs/common';
import { Throttle } from '@nestjs/throttler';
import { GlobalGuard } from '~/guards/global/global.guard'; import { GlobalGuard } from '~/guards/global/global.guard';
import { BulkDataAliasService } from '~/services/bulk-data-alias.service'; import { BulkDataAliasService } from '~/services/bulk-data-alias.service';
import { Acl } from '~/middlewares/extract-ids/extract-ids.middleware'; import { Acl } from '~/middlewares/extract-ids/extract-ids.middleware';

Loading…
Cancel
Save