Variants in NotCreated state are now considered as dirty.

This commit is contained in:
copilaurobert
2018-08-08 11:58:35 +02:00
parent f921e891a3
commit bd40428ad9

View File

@@ -42,7 +42,8 @@
// * it's editor is in a $dirty state
// * it has pending saves
// * it is unpublished
return (variant.active || variant.isDirty || variant.state === "Draft" || variant.state === "PublishedPendingChanges");
// * it is in NotCreated state
return (variant.active || variant.isDirty || variant.state === "Draft" || variant.state === "PublishedPendingChanges" || variant.state === "NotCreated");
}
function pristineVariantFilter(variant) {