Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): accept ai base name from query params

Ramesh Manea8a68c907dff
diff --git a/packages/nc-gui/components/workspace/project/AiCreateProject.vue b/packages/nc-gui/components/workspace/project/AiCreateProject.vue
index 09524aa05f..d561ac3ec1 100644
--- a/packages/nc-gui/components/workspace/project/AiCreateProject.vue
+++ b/packages/nc-gui/components/workspace/project/AiCreateProject.vue
@@ -242,7 +242,7 @@ const onExcludeView = (view: any) => {
const finalSchema = computed(() => {
const schema = {
- title: predictedSchema.value.title,
+ title: props.initialValue?.baseName || predictedSchema.value.title,
tables: predictedSchema.value.tables.filter((table: any) => !table.excluded),
relationships: predictedSchema.value.relationships.filter((relationship: { from: string; to: string }) => {
const fromTable = predictedSchema.value.tables.find((table: { title: string }) => table.title === relationship.from)