mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix item fetching in calendar layout when switching view (#22517)
This commit is contained in:
5
.changeset/strong-garlics-visit.md
Normal file
5
.changeset/strong-garlics-visit.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@directus/app": patch
|
||||
---
|
||||
|
||||
Ensured items are correctly loaded when switching the view in the calendar layout
|
||||
@@ -62,6 +62,9 @@ export default defineLayout<LayoutOptions>({
|
||||
return null;
|
||||
}
|
||||
|
||||
// Subscribe to 'view' updates to get latest start/end dates
|
||||
void viewInfo.value;
|
||||
|
||||
const start = formatISO(calendar.value.view.activeStart);
|
||||
const end = formatISO(calendar.value.view.activeEnd);
|
||||
const startsHere = { [startDateField.value]: { _between: [start, end] } };
|
||||
|
||||
Reference in New Issue
Block a user