sonar low

This commit is contained in:
Cindy Chang
2024-07-26 10:48:38 +08:00
parent 2ca4fdd0c6
commit a5f271ccc8
7 changed files with 6 additions and 10 deletions

View File

@@ -537,7 +537,7 @@ export default {
this.isLoading = true;
let data;
let sele = this.selectValue;
let isExclude = sele[5] === 'Exclude' ? true : false;
let isExclude = sele[5] === 'Exclude';
let containmentMap = {
'Contained in': 'occurred-in',
'Started in': 'started-in',

View File

@@ -62,6 +62,7 @@
<div class="pt-1 pb-4">
<p class="h2">Case Duration</p>
<table class="text-sm caseDurationTable">
<caption class="hidden">Case Duration</caption>
<tbody>
<tr>
<td>

View File

@@ -141,13 +141,13 @@ export default {
if(e.target.value !== 'freq' && e.target.value !== 'duration') value = e.target.value;
switch (type) {
case 'freq':
value = value ? value : this.selectedFreq ? this.selectedFreq : 'total';
value = value || this.selectedFreq || 'total';
this.dataLayerType = type;
this.dataLayerOption = value;
this.selectedFreq = value;
break;
case 'duration':
value = value ? value : this.selectedDuration ? this.selectedDuration : 'total';
value = value || this.selectedDuration || 'total';
this.dataLayerType = type;
this.dataLayerOption = value;
this.selectedDuration = value;