Skip to content

Commit b28dec2

Browse files
authored
Assign default name to archive file if any archive roots are present (#105)
1 parent ae64a17 commit b28dec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webui/src/js/models/wdt-model-definition.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,9 @@ define(['knockout', 'utils/observable-properties', 'js-yaml', 'utils/validation-
458458
this.propertiesFiles.value = [defaultPath];
459459
}
460460

461-
// if there are archive updates present, but no archive file name,
461+
// if there are archive roots present, but no archive file name,
462462
// use the file prefix to create a default file location.
463-
if(this.archiveUpdates.length && (this.archiveFiles.value.length < 1)) {
463+
if(this.archiveRoots().length && (this.archiveFiles.value.length < 1)) {
464464
let defaultPath = this.getDefaultArchiveFile();
465465
this.archiveFiles.value = [defaultPath];
466466
}

0 commit comments

Comments
 (0)