Commit 74ef2614 authored by Coung Ngo's avatar Coung Ngo Committed by Denys Mishunov

Fix object prop default to empty object

parent 2afa9308
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
selectedStage: { selectedStage: {
type: Object, type: Object,
required: false, required: false,
default: () => {}, default: () => ({}),
}, },
withStageCounts: { withStageCounts: {
type: Boolean, type: Boolean,
......
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
issuableTemplates: { issuableTemplates: {
type: [Object, Array], type: [Object, Array],
required: false, required: false,
default: () => {}, default: () => ({}),
}, },
projectPath: { projectPath: {
type: String, type: String,
......
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
issuableTemplates: { issuableTemplates: {
type: [Object, Array], type: [Object, Array],
required: false, required: false,
default: () => {}, default: () => [],
}, },
issuableType: { issuableType: {
type: String, type: String,
......
...@@ -42,12 +42,12 @@ export default { ...@@ -42,12 +42,12 @@ export default {
itemsCount: { itemsCount: {
type: Object, type: Object,
required: false, required: false,
default: () => {}, default: () => ({}),
}, },
pageInfo: { pageInfo: {
type: Object, type: Object,
required: false, required: false,
default: () => {}, default: () => ({}),
}, },
statusTabs: { statusTabs: {
type: Array, type: Array,
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
enabledNamespaces: { enabledNamespaces: {
type: Object, type: Object,
required: false, required: false,
default: () => {}, default: () => ({}),
}, },
groups: { groups: {
type: Array, type: Array,
......
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
chartData: { chartData: {
type: [Object, Array], type: [Object, Array],
required: false, required: false,
default: () => {}, default: () => [],
}, },
}, },
computed: { computed: {
......
...@@ -16,7 +16,7 @@ export default { ...@@ -16,7 +16,7 @@ export default {
mergedBy: { mergedBy: {
type: Object, type: Object,
required: false, required: false,
default: () => {}, default: () => ({}),
}, },
}, },
computed: { computed: {
......
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
validationState: { validationState: {
type: Object, type: Object,
required: false, required: false,
default: () => {}, default: () => ({}),
}, },
}, },
data() { data() {
......
...@@ -9,7 +9,7 @@ export default { ...@@ -9,7 +9,7 @@ export default {
healthStatus: { healthStatus: {
type: Object, type: Object,
required: true, required: true,
default: () => {}, default: () => ({}),
}, },
}, },
computed: { computed: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment