Skip to content

Commit

Permalink
fix(kirby5): always return merged content
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Dec 10, 2024
1 parent 5bbff3f commit 63a1299
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/composables/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,10 @@ export function useContent() {
const update = (
values?: Record<string, any>,
): Record<string, any> | undefined => {
if (!values || Object.keys(values).length === 0) {
return;
}

if (!_isKirby5) {
if (!_isKirby5 && values) {
for (const [key, value] of Object.entries(values)) {
store.dispatch("content/update", [key, value]);
}

return contentChanges.value;
}

return content.merge(values);
Expand Down

0 comments on commit 63a1299

Please sign in to comment.