From c1f0239ec816ea67752e569dbc454c4adedbe8a1 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 16 Mar 2023 13:25:17 +0800 Subject: [PATCH] fix(nc-gui): create page type issues --- packages/nc-gui/pages/index/index/create.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/pages/index/index/create.vue b/packages/nc-gui/pages/index/index/create.vue index c9bfe2a2ad..ce1075453e 100644 --- a/packages/nc-gui/pages/index/index/create.vue +++ b/packages/nc-gui/pages/index/index/create.vue @@ -2,6 +2,7 @@ import type { Form, Input } from 'ant-design-vue' import type { RuleObject } from 'ant-design-vue/es/form' import type { VNodeRef } from '@vue/runtime-core' +import type { ProjectType } from 'nocodb-sdk' import { extractSdkResponseErrorMsg, generateUniqueName, @@ -44,9 +45,9 @@ const createProject = async () => { try { creating.value = true - const result = await api.project.create({ + const result = (await api.project.create({ title: formState.title, - }) + })) as Partial await navigateTo(`/nc/${result.id}`) } catch (e: any) {