diff --git a/packages/nc-gui/components/dlg/AirtableImport.vue b/packages/nc-gui/components/dlg/AirtableImport.vue index 73f427e77e..f612c372bd 100644 --- a/packages/nc-gui/components/dlg/AirtableImport.vue +++ b/packages/nc-gui/components/dlg/AirtableImport.vue @@ -208,9 +208,10 @@ onMounted(async () => { socket.on('progress', async (d: Record) => { progress.value.push(d) - // FIXME: this doesn't work await nextTick(() => { - ;(logRef.value?.$el as HTMLDivElement).scrollTo() + const container: HTMLDivElement = logRef.value?.$el?.firstElementChild + if (!container) return + container.scrollTop = container.scrollHeight }) if (d.status === 'COMPLETED') { @@ -286,30 +287,30 @@ onBeforeUnmount(() => {
- {{ - $t('labels.importSecondaryViews') - }} + {{ $t('labels.importSecondaryViews') }} +
- {{ - $t('labels.importRollupColumns') - }} + {{ $t('labels.importRollupColumns') }} +
- {{ - $t('labels.importLookupColumns') - }} + {{ $t('labels.importLookupColumns') }} +
- {{ - $t('labels.importAttachmentColumns') - }} + {{ $t('labels.importAttachmentColumns') }} +
@@ -317,9 +318,9 @@ onBeforeUnmount(() => { - {{ - $t('labels.importFormulaColumns') - }} + {{ $t('labels.importFormulaColumns') }} + diff --git a/packages/nc-gui/composables/useGridViewColumnWidth.ts b/packages/nc-gui/composables/useGridViewColumnWidth.ts index a85e7b036f..1d67613cfa 100644 --- a/packages/nc-gui/composables/useGridViewColumnWidth.ts +++ b/packages/nc-gui/composables/useGridViewColumnWidth.ts @@ -39,8 +39,7 @@ export function useGridViewColumnWidth(view: Ref) { const loadGridViewColumns = async () => { if (!view.value?.id && !isPublic.value) return - const colsData: GridColumnType[] = (isPublic.value ? columns.value : await $api.dbView.gridColumnsList(view.value!.id!) -) ?? [] + const colsData: GridColumnType[] = (isPublic.value ? columns.value : await $api.dbView.gridColumnsList(view.value!.id!)) ?? [] gridViewCols.value = colsData.reduce>( (o, col) => ({ ...o,