Skip to content

Commit 2dd0d22

Browse files
committed
Fix warning
1 parent 445b9e3 commit 2dd0d22

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/views/Log.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,12 @@ export default {
313313
314314
created () {
315315
// set the ID/file if specified in initialOptions
316-
if (this.initialOptions && this.initialOptions.tokens) {
317-
if (this.initialOptions.tokens.task) {
318-
this.$data.relativeID = this.initialOptions.tokens.relative_id
319-
this.$data.jobLog = 1
320-
}
316+
if (this.initialOptions?.tokens?.task) {
317+
this.relativeID = this.initialOptions.tokens.relative_id
318+
this.jobLog = 1
321319
}
322-
if (this.initialOptions && this.initialOptions.file) {
323-
this.$data.file = this.initialOptions.file
320+
if (this.initialOptions?.file) {
321+
this.file = this.initialOptions.file
324322
}
325323
},
326324

0 commit comments

Comments
 (0)