Skip to content

Commit 1d1793a

Browse files
committed
fix operator for update condition logic
Signed-off-by: Sahiba Mittal <[email protected]>
1 parent 3c983ff commit 1d1793a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/policy/PolicyCondition.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
let url = `${this.$api.BASE_URL}/${this.$api.URL_POLICY}/${this.policy.uuid}/condition`;
238238
this.axios.put(url, {
239239
subject: this.subject,
240-
operator: this.operator,
240+
operator: this.subject === 'COMPONENT_HASH' ? 'IS' : this.operator,
241241
value: dynamicValue
242242
}).then((response) => {
243243
this.condition = response.data;

0 commit comments

Comments
 (0)