Skip to content

Commit 2a61078

Browse files
committed
minor: fix fileList default
Props of type array need a factory function for their defaults. Otherwise when reusing the component all might end up with a shared default array. Signed-off-by: Azul <azul@riseup.net>
1 parent 34499eb commit 2a61078

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

js/viewer-main.js

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/viewer-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mixins/Mime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
// list of all the visible files
5656
fileList: {
5757
type: Array,
58-
default: [],
58+
default: () => [],
5959
},
6060
// file mime (aliased if specified in the model)
6161
mime: {

0 commit comments

Comments
 (0)