Use function as default value for array prop
This commit is contained in:
parent
6c82680066
commit
a4c5817b54
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export default {
|
|||
gqlType: {},
|
||||
jumpTypeCallback: Function,
|
||||
isHighlighted: { type: Boolean, default: false },
|
||||
highlightedFields: { type: Array, default: [] },
|
||||
highlightedFields: { type: Array, default: () => [] },
|
||||
},
|
||||
methods: {
|
||||
isFieldHighlighted({ field }) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue