From a4c5817b54c29a8a4644e2d76623750d2559612a Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Thu, 8 Oct 2020 20:00:20 +0530 Subject: [PATCH] Use function as default value for array prop --- components/graphql/type.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/graphql/type.vue b/components/graphql/type.vue index 42bfdce08..146d2ad49 100644 --- a/components/graphql/type.vue +++ b/components/graphql/type.vue @@ -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 }) {