mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 06:45:41 +00:00
fix(ReferenceError): structuredClone is not defined
This commit is contained in:
@@ -103,6 +103,8 @@ const customSourceId = computed(() => {
|
||||
return sourceSelectorRef.value?.customSourceId || sourceId
|
||||
})
|
||||
|
||||
const { clone } = useUndoRedo()
|
||||
|
||||
const useForm = Form.useForm
|
||||
|
||||
const defaultImportState = {
|
||||
@@ -118,7 +120,7 @@ const defaultImportState = {
|
||||
importDataOnly: true,
|
||||
},
|
||||
}
|
||||
const importState = reactive(structuredClone(defaultImportState))
|
||||
const importState = reactive(clone(defaultImportState))
|
||||
|
||||
const { token } = useGlobal()
|
||||
|
||||
@@ -170,7 +172,7 @@ watch(
|
||||
dialogShow,
|
||||
async (newValue) => {
|
||||
if (newValue) {
|
||||
Object.assign(importState, structuredClone(defaultImportState))
|
||||
Object.assign(importState, clone(defaultImportState))
|
||||
if (isWorkerSupport) {
|
||||
importWorker = await $importWorker?.get()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user