Tiny fixes + start pre-rendering
This commit is contained in:
1
client/composables/stores/useContentStore.js
vendored
1
client/composables/stores/useContentStore.js
vendored
@@ -26,6 +26,7 @@ export const useContentStore = (mapKey = 'id') => {
|
||||
}
|
||||
|
||||
function save(items) {
|
||||
if (!items) return
|
||||
if (!Array.isArray(items)) items = [items]
|
||||
items.forEach((item) => {
|
||||
content.value.set(item[mapKey], item)
|
||||
|
||||
Reference in New Issue
Block a user