π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
chore(nc-gui): lint
Ramesh Manea64f4130547a
diff --git a/packages/nc-gui/components/dlg/Table/Create.vue b/packages/nc-gui/components/dlg/Table/Create.vueindex 43c6f1bd4f..18c1190a3a 100644--- a/packages/nc-gui/components/dlg/Table/Create.vue+++ b/packages/nc-gui/components/dlg/Table/Create.vue@@ -44,7 +44,7 @@ const workspaceStore = useWorkspace()const baseStore = useBase()const { isMysql, isPg, isSnowflake } = baseStore-const { baseId } = storeToRefs(baseStore)+const { baseId: _baseId } = storeToRefs(baseStore)const { loadProjectTables, addTable } = useTablesStore()@@ -426,8 +426,8 @@ const handleRefreshOnError = () => {}}-watch(baseId, () => {- if (baseId.value !== props.baseId) {+watch(_baseId, () => {+ if (_baseId.value !== props.baseId) {dialogShow.value = false}})diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.tsindex 1585acc6a5..200ba60626 100644--- a/packages/nc-gui/composables/useExpandedFormStore.ts+++ b/packages/nc-gui/composables/useExpandedFormStore.ts@@ -784,7 +784,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState($ncSocket.subscribe(activeChannel.value)$ncSocket.onMessage(activeChannel.value, (data: DataPayload) => {- const { id, action, payload, before } = data+ const { id, action, payload } = dataconst activePk = extractPkFromRow(row.value.row, meta.value?.columns as ColumnType[])@@ -795,7 +795,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState(// Merge payload with local row, but preserve locally changed columnsconst mergedRow = { ...row.value.row, ...payload }for (const col of changedColumns.value) {- if (row.value.row.hasOwnProperty(col)) {+ if (Object.prototype.hasOwnProperty.call(row.value.row, col)) {mergedRow[col] = row.value.row[col]if (row.value.row[col] !== payload[col]) {// localOnlyChanges.value[col] = payload[col]diff --git a/packages/nc-gui/composables/useLTARStore.ts b/packages/nc-gui/composables/useLTARStore.tsindex c5076c145e..7557794613 100644--- a/packages/nc-gui/composables/useLTARStore.ts+++ b/packages/nc-gui/composables/useLTARStore.ts@@ -692,7 +692,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(try {// todo: audit- if (Object.keys(currentRow.value.row).length === 0) {+ if (Object.keys(currentRow.value.row).length === 0) {refreshCurrentRow()}