3
0

Add missing meta.style update check to page layouts

This commit is contained in:
Tomaž Jerman
2023-04-05 15:45:46 +02:00
committed by Jože Fortun
parent c62b7b61a1
commit 16a30425ab
+5
View File
@@ -511,6 +511,11 @@ func (svc pageLayout) handleUpdate(ctx context.Context, upd *types.PageLayout) p
changes |= pageLayoutChanged
}
if !reflect.DeepEqual(res.Meta.Style, upd.Meta.Style) {
res.Meta.Style = upd.Meta.Style
changes |= pageLayoutChanged
}
if res.Primary != upd.Primary {
res.Primary = upd.Primary
changes |= pageLayoutChanged