Use function as default value for array prop

This commit is contained in:
Liyas Thomas
2020-10-08 20:00:20 +05:30
parent 6c82680066
commit a4c5817b54

View File

@@ -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 }) {