diff --git a/package.json b/package.json index ef0bfdc144f..30340dfbab5 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,6 @@ "overrides": { "@vitejs/plugin-vue": "^5.2.1", "vite": "^6.0.11", - "vitest": "^0.31.1", - "sass": "^1.83.4" + "vitest": "^0.31.1" } } diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index d76053ce938..d7838d58ed0 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -9,7 +9,7 @@ const arrayDataStore = useArrayDataStore(); export function useArrayData(key, userOptions) { key ??= useRoute().meta.moduleName; - + if (!key) throw new Error('ArrayData: A key is required to use this composable'); if (!arrayDataStore.get(key)) arrayDataStore.set(key);