Check that policy is defined in enforcementStatusLabel

parent 9d4709c4
...@@ -29,7 +29,10 @@ export default { ...@@ -29,7 +29,10 @@ export default {
return removeUnnecessaryDashes(this.value); return removeUnnecessaryDashes(this.value);
}, },
enforcementStatusLabel() { enforcementStatusLabel() {
if (this.policy) {
return this.policy.isEnabled ? __('Enabled') : __('Disabled'); return this.policy.isEnabled ? __('Enabled') : __('Disabled');
}
return null;
}, },
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment