Skip to content

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

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.vue
index 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.ts
index 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 } = data
const 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 columns
const 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.ts
index 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()
}