Clean up var declaration

This commit is contained in:
MattIPv4
2020-04-30 21:02:27 +01:00
parent 734a27a29d
commit 6c4afdeb6f
5 changed files with 5 additions and 10 deletions

View File

@@ -155,8 +155,7 @@
// Disable everything if PHP is disabled
'$props.data.php': {
handler(data) {
const state = data.computed;
if (state) {
if (data.computed) {
this.$props.data.wordPressRules.enabled = true;
this.$props.data.wordPressRules.computed = this.$props.data.wordPressRules.value;
this.$props.data.drupalRules.enabled = true;