From 4392ece68988b38cc538067e9f2484f401c9ddca Mon Sep 17 00:00:00 2001 From: Omer Date: Tue, 26 Nov 2019 18:24:18 +0200 Subject: [PATCH] removed warning --- chameleon-client/src/views/CameraViewes/ThresholdTab.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/chameleon-client/src/views/CameraViewes/ThresholdTab.vue b/chameleon-client/src/views/CameraViewes/ThresholdTab.vue index 880851618..ba68cee40 100644 --- a/chameleon-client/src/views/CameraViewes/ThresholdTab.vue +++ b/chameleon-client/src/views/CameraViewes/ThresholdTab.vue @@ -33,9 +33,7 @@ import CVswitch from '../../components/cv-switch' }, computed: { isAutomaticHSV() { - if (typeof this.pipeline.isColorPick === "boolean") { - return this.pipeline.isColorPick; - } + return this.pipeline.isColorPick; }, pipeline: { get() { @@ -44,9 +42,7 @@ import CVswitch from '../../components/cv-switch' }, isManualHSV() { - if (typeof this.pipeline.isColorPick === "boolean") { - return !this.pipeline.isColorPick; - } + return !this.pipeline.isColorPick; }, }, methods:{