π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
chore(nc-gui): lint
Ramesh Maned96682931d23
diff --git a/packages/nc-gui/components/dlg/Table/Create.vue b/packages/nc-gui/components/dlg/Table/Create.vueindex cd4dbc2b03..a1c77975df 100644--- a/packages/nc-gui/components/dlg/Table/Create.vue+++ b/packages/nc-gui/components/dlg/Table/Create.vue@@ -300,7 +300,9 @@ const validators = computed(() => {validator: (_: any, value: any) => {// validate duplicate aliasreturn new Promise((resolve, reject) => {- if ((tables.value || []).some((t) => t.title?.trim() === (value || '').trim() && t.source_id === customSourceId.value)) {+ if (+ (tables.value || []).some((t) => t.title?.trim() === (value || '').trim() && t.source_id === customSourceId.value)+ ) {return reject(new Error('Duplicate table alias'))}return resolve(true)diff --git a/packages/nc-gui/components/dlg/View/Create.vue b/packages/nc-gui/components/dlg/View/Create.vueindex 6e9ad5a5a2..a45de8e8c2 100644--- a/packages/nc-gui/components/dlg/View/Create.vue+++ b/packages/nc-gui/components/dlg/View/Create.vue@@ -145,7 +145,9 @@ const viewNameRules = [{validator: (_: unknown, v: string) =>new Promise((resolve, reject) => {- views.value.every((v1) => v1.title?.trim() !== v?.trim()) ? resolve(true) : reject(new Error(`View name should be unique`))+ views.value.every((v1) => v1.title?.trim() !== v?.trim())+ ? resolve(true)+ : reject(new Error(`View name should be unique`))}),message: 'View name should be unique',},diff --git a/packages/nc-gui/composables/useIntegrationsStore.ts b/packages/nc-gui/composables/useIntegrationsStore.tsindex 47dc9d0dda..cd0b39c82f 100644--- a/packages/nc-gui/composables/useIntegrationsStore.ts+++ b/packages/nc-gui/composables/useIntegrationsStore.ts@@ -228,7 +228,7 @@ const [useProvideIntegrationViewStore, _useIntegrationStore] = useInjectionStateif (integration.title) {integration.title = integration.title.trim()}-+await api.integration.update(integration.id, integration)if (integration.type === IntegrationsType.Ai) {@@ -300,7 +300,7 @@ const [useProvideIntegrationViewStore, _useIntegrationStore] = useInjectionStateif (integration.title) {integration.title = integration.title.trim()}-+const response = await api.integration.create(integration)if (response && response?.id) {