Skip to content

Commit

Permalink
Fix obfuscation terms issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Mar 6, 2024
1 parent aba4321 commit 8b838e7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/electron/src/views/DataExportView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ onMounted(async () => {
});
async function handleWindowActivityExportConfigChanged(newSelectedOption: DataExportType) {
if (newSelectedOption !== DataExportType.ObfuscateWithTerms) {
obfuscationTermsInput.value = [];
}
if (mostRecentWindowActivities.value && newSelectedOption === DataExportType.Obfuscate) {
mostRecentWindowActivitiesObfuscated.value = await typedIpcRenderer.invoke(
'obfuscateWindowActivityDtosById',
Expand Down Expand Up @@ -160,7 +157,14 @@ async function handleNextStep() {
if (currentNamedStep.value === 'create-export') {
isExporting.value = true;
try {
const obfuscationTerms = Array.from(obfuscationTermsInput.value || []);
let obfuscationTerms: string[] = [];
if (
exportWindowActivitySelectedOption.value === DataExportType.ObfuscateWithTerms &&
obfuscationTermsInput.value &&
obfuscationTermsInput.value.length > 0
) {
obfuscationTerms = Array.from(obfuscationTermsInput.value);
}
pathToExportedFile.value = await typedIpcRenderer.invoke(
'startDataExport',
exportWindowActivitySelectedOption.value,
Expand Down

0 comments on commit 8b838e7

Please sign in to comment.