use calculated property instead of calling the method.

This commit is contained in:
Niels Lyngsø
2020-08-19 07:45:56 +02:00
parent 2b73b3ddad
commit cd6ec321f5

View File

@@ -78,7 +78,7 @@
}
function notPublishedMandatoryFilter(variant) {
return variant.state !== "Published" && variant.state !== "PublishedPendingChanges" && isMandatoryFilter(variant);
return variant.state !== "Published" && variant.state !== "PublishedPendingChanges" && variant.isMandatory === true;
}
function isMandatoryFilter(variant) {
//determine a variant is 'dirty' (meaning it will show up as publish-able) if it's