Skip to content

Commit be3716f

Browse files
authored
Assign default name to archive file if any archive roots are present (#107)
1 parent 2ab672e commit be3716f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@ define(['knockout', 'utils/observable-properties', 'js-yaml', 'utils/validation-
460460
this.propertiesFiles.value = [defaultPath];
461461
}
462462

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

0 commit comments

Comments
 (0)