From 5df53d76d5b49966bc047df00404f2eb3fd99450 Mon Sep 17 00:00:00 2001 From: Richard Killen Date: Tue, 22 Feb 2022 14:21:51 -0600 Subject: [PATCH] Assign default name to archive file if any archive roots are present --- webui/src/js/models/wdt-model-definition.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/src/js/models/wdt-model-definition.js b/webui/src/js/models/wdt-model-definition.js index e6c566cf8..326d509d6 100644 --- a/webui/src/js/models/wdt-model-definition.js +++ b/webui/src/js/models/wdt-model-definition.js @@ -458,9 +458,9 @@ define(['knockout', 'utils/observable-properties', 'js-yaml', 'utils/validation- this.propertiesFiles.value = [defaultPath]; } - // if there are archive updates present, but no archive file name, + // if there are archive roots present, but no archive file name, // use the file prefix to create a default file location. - if(this.archiveUpdates.length && (this.archiveFiles.value.length < 1)) { + if(this.archiveRoots().length && (this.archiveFiles.value.length < 1)) { let defaultPath = this.getDefaultArchiveFile(); this.archiveFiles.value = [defaultPath]; }