fix: content property

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-03-03 21:52:21 -05:00
parent 2311239e11
commit 118acc5342
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -68,11 +68,11 @@ export const useChronoStore = defineStore('chronoStore', () => {
const entities = computed(() => entitiesStore.entities)
const calendars = computed(() => {
return collections.value.filter(col => col.properties.contents?.event)
return collectionsStore.collections.filter(col => col.properties.content?.includes('event'))
})
const taskLists = computed(() => {
return collections.value.filter(col => col.properties.contents?.task)
return collectionsStore.collections.filter(col => col.properties.content?.includes('task'))
})
const events = computed(() => {
@@ -146,7 +146,7 @@ export const useChronoStore = defineStore('chronoStore', () => {
editingCollection.value = new CollectionObject()
editingCollection.value.properties.fromJson({
...editingCollection.value.properties.toJson(),
contents: { event: true },
content: ['event'],
})
collectionEditorMode.value = 'create'
collectionEditorType.value = 'calendar'
@@ -157,7 +157,7 @@ export const useChronoStore = defineStore('chronoStore', () => {
editingCollection.value = new CollectionObject()
editingCollection.value.properties.fromJson({
...editingCollection.value.properties.toJson(),
contents: { task: true },
content: ['task'],
})
collectionEditorMode.value = 'create'
collectionEditorType.value = 'tasklist'