π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: navigate to newly created base
Ramesh Mane773b0d1501a8
diff --git a/packages/nc-gui/components/workspace/CreateProjectDlg.vue b/packages/nc-gui/components/workspace/CreateProjectDlg.vueindex 454f3ecdbd..34866afee6 100644--- a/packages/nc-gui/components/workspace/CreateProjectDlg.vue+++ b/packages/nc-gui/components/workspace/CreateProjectDlg.vue@@ -12,8 +12,6 @@ const emit = defineEmits(['update:modelValue'])const dialogShow = useVModel(props, 'modelValue', emit)-const isWsBaseListModal = inject(IsWsBaseListModalInj, ref(false))-const { t } = useI18n()const basesStore = useBases()@@ -24,6 +22,8 @@ const { navigateToProject } = useGlobal()const { refreshCommandPalette } = useCommandPalette()+const wsBaseListActions = useWsBaseListActions()+const nameValidationRules = [{required: true,@@ -57,11 +57,13 @@ const createProject = async () => {meta: formState.value.meta,})- if (!isWsBaseListModal.value) {- navigateToProject({- baseId: base.id!,- workspaceId: 'nc',- })+ navigateToProject({+ baseId: base.id!,+ workspaceId: 'nc',+ })++ if (wsBaseListActions) {+ wsBaseListActions.closeModal()}dialogShow.value = falsediff --git a/packages/nc-gui/composables/useWsBaseListActions.ts b/packages/nc-gui/composables/useWsBaseListActions.tsindex f666396ba2..827bedd4bc 100644--- a/packages/nc-gui/composables/useWsBaseListActions.ts+++ b/packages/nc-gui/composables/useWsBaseListActions.ts@@ -163,7 +163,7 @@ const [useProvideWsBaseListActions, useWsBaseListActions] = useInjectionState((cexport { useProvideWsBaseListActions, useWsBaseListActions }export function useWsBaseListActionsOrThrow() {- const baseActions = useWsBaseListActions()- if (baseActions == null) throw new Error('Please call `useProvideWsBaseListActions` on the appropriate parent component')- return baseActions+ const wsBaseListActions = useWsBaseListActions()+ if (wsBaseListActions == null) throw new Error('Please call `useProvideWsBaseListActions` on the appropriate parent component')+ return wsBaseListActions}