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

@@ -111,8 +111,7 @@
// Disable Django if Python is disabled
'$props.data.python': {
handler(data) {
const state = data.computed;
if (state) {
if (data.computed) {
this.$props.data.djangoRules.enabled = true;
this.$props.data.djangoRules.computed = this.$props.data.djangoRules.value;
} else {