Skip to content

Commit 756cd8c

Browse files
committed
fix: type errors
1 parent a37d95a commit 756cd8c

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

frontend/src/features/wikibase-schema/components/WikibaseSchemaEditor.vue

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@ const hasItem = computed(() => {
5050
})
5151
5252
// Lifecycle
53-
onMounted(async () => {
54-
await initializeEditor()
53+
onMounted(() => {
54+
initializeEditor()
5555
})
5656
5757
// Methods
58-
const initializeEditor = async () => {
58+
const initializeEditor = () => {
5959
try {
6060
// Initialize drag-drop available targets
6161
initializeDragDropTargets()
6262
6363
// The schema selection workflow will handle loading schemas
6464
// No need to load schema here - it's handled by useSchemaSelection
6565
isInitialized.value = true
66-
} catch (error) {
66+
} catch {
6767
showError(
68-
createFrontendError('SCHEMA_EDITOR_INIT_FAILED', 'Failed to initialize schema editor'),
68+
[createFrontendError('SCHEMA_EDITOR_INIT_FAILED', 'Failed to initialize schema editor')],
6969
)
7070
}
7171
}
@@ -121,12 +121,14 @@ const handleSave = async () => {
121121
emit('save')
122122
} else {
123123
showError(
124-
createFrontendError(
125-
'UI_STATE_ERROR',
126-
typeof result.error === 'string'
127-
? result.error
128-
: result.error?.message || 'Failed to save schema',
129-
),
124+
[
125+
createFrontendError(
126+
'UI_STATE_ERROR',
127+
typeof result.error === 'string'
128+
? result.error
129+
: result.error?.message || 'Failed to save schema',
130+
),
131+
],
130132
)
131133
}
132134
}

0 commit comments

Comments
 (0)