3
0

Fix rebase lapsus omitting page.Config field

This commit is contained in:
Tomaž Jerman 2023-03-29 09:07:30 +02:00 committed by Jože Fortun
parent e2e284ce0a
commit 0b98c786dd

View File

@ -606,6 +606,11 @@ func (svc page) handleUpdate(ctx context.Context, upd *types.Page) pageUpdateHan
changes |= pageChanged
}
if !reflect.DeepEqual(res.Config, upd.Config) {
res.Config = upd.Config
changes |= pageChanged
}
if !reflect.DeepEqual(res.Blocks, upd.Blocks) {
res.Blocks = upd.Blocks
changes |= pageChanged