Skip to content

Commit 172e07e

Browse files
committed
Guard desyncField with trackingDirtyState instead of the raw trackDirtyState prop
1 parent 80a75c2 commit 172e07e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

resources/js/components/ui/Publish/Container.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ function syncField(path) {
240240
}
241241
242242
function desyncField(path) {
243-
// While dirty tracking is paused (e.g. after switching localizations), ignore
244-
// fieldtype emissions so they don't falsely mark synced fields as localized.
245-
if (!props.trackDirtyState) return;
243+
if (!trackingDirtyState.value) return;
246244
247245
addLocalizedField(path);
248246
dirty();

0 commit comments

Comments
 (0)