Use function as default value for array prop
This commit is contained in:
@@ -31,7 +31,7 @@ export default {
|
|||||||
gqlType: {},
|
gqlType: {},
|
||||||
jumpTypeCallback: Function,
|
jumpTypeCallback: Function,
|
||||||
isHighlighted: { type: Boolean, default: false },
|
isHighlighted: { type: Boolean, default: false },
|
||||||
highlightedFields: { type: Array, default: [] },
|
highlightedFields: { type: Array, default: () => [] },
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isFieldHighlighted({ field }) {
|
isFieldHighlighted({ field }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user