Fix problem introduced with const

This commit is contained in:
Khalid Adil 2024-10-02 22:23:55 -05:00
parent 1180597db1
commit 39a73cf635

View File

@ -113,7 +113,7 @@
@change="persist" @change="persist"
/> />
</span> </span>
<span v-if="selectedOutputSelection === TELEMETRY_VALUE" class="c-cdef__control"> <span v-if="selectedOutputSelection === telemetryValueString" class="c-cdef__control">
<select <select
v-model="condition.configuration.outputTelemetry" v-model="condition.configuration.outputTelemetry"
aria-label="Output Telemetry Selection" aria-label="Output Telemetry Selection"
@ -289,6 +289,7 @@ export default {
expanded: true, expanded: true,
trigger: 'all', trigger: 'all',
selectedOutputSelection: '', selectedOutputSelection: '',
telemetryValueString: TELEMETRY_VALUE,
outputOptions: ['none', 'false', 'true', 'string', TELEMETRY_VALUE], outputOptions: ['none', 'false', 'true', 'string', TELEMETRY_VALUE],
criterionIndex: 0, criterionIndex: 0,
draggingOver: false, draggingOver: false,
@ -337,10 +338,11 @@ export default {
}, },
deep: true deep: true
}, },
isEditing(newValue, oldValue) { telemetry: {
if (newValue === true) { handler() {
this.initializeMetadata(); this.initializeMetadata();
} },
deep: true
} }
}, },
unmounted() { unmounted() {
@ -348,7 +350,6 @@ export default {
}, },
mounted() { mounted() {
this.setOutputSelection(); this.setOutputSelection();
this.initializeMetadata();
}, },
methods: { methods: {
setOutputSelection() { setOutputSelection() {