Skip to content

Commit

Permalink
fix: CSV config separator [WTEL-4765]
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirBeria committed Jul 18, 2024
1 parent d3a5748 commit 334b414
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@input="selectHandler"
/>
<wt-input
v-if="isExportSettingsFormatXls"
v-if="isExportSettingsFormatCSV"
:label="$t('objects.CSV.separator')"
:v="v$.itemInstance.separator"
:value="itemInstance.separator"
Expand Down Expand Up @@ -136,7 +136,7 @@ export default {
format: { required },
},
};
if (this.isExportSettingsFormatXls) {
if (this.isExportSettingsFormatCSV) {
defaultSelectConfig = {
itemInstance: {
format: { required },
Expand Down Expand Up @@ -184,8 +184,8 @@ export default {
displayedConfigurationType() {
return { [this.valueType]: true };
},
isExportSettingsFormatXls() {
return this.itemInstance?.format?.value === TypesExportedSettings.XLS;
isExportSettingsFormatCSV() {
return this.itemInstance?.format?.value === TypesExportedSettings.CSV;
},
},
methods: {
Expand Down Expand Up @@ -219,7 +219,7 @@ export default {
},
selectHandler(selectedValue) {
this.itemInstance.format = selectedValue;
if (!this.isExportSettingsFormatXls) {
if (!this.isExportSettingsFormatCSV) {
delete this.itemInstance.separator;
}
this.handleDefaultSelectConfigInput();
Expand Down

0 comments on commit 334b414

Please sign in to comment.