diff --git a/src/runtime/composables/useDrupalCe/index.ts b/src/runtime/composables/useDrupalCe/index.ts index f82c81d8..e49d5e91 100644 --- a/src/runtime/composables/useDrupalCe/index.ts +++ b/src/runtime/composables/useDrupalCe/index.ts @@ -252,12 +252,12 @@ const pushMessagesToState = (messages) => { if (!messagesArray.length) { return } - process.client && useDrupalCe().getMessages().value.push(...messagesArray) + import.meta.client && useDrupalCe().getMessages().value.push(...messagesArray) } const menuErrorHandler = (error: Record) => { console.error({ statusCode: error.value.statusCode, statusMessage: error.value.message, data: error.value.data }) - process.client && useDrupalCe().getMessages().value.push({ + import.meta.client && useDrupalCe().getMessages().value.push({ type: 'error', message: `Menu error: ${error.value.message}.` })