Commit 1feebed5 authored by Denys Mishunov's avatar Denys Mishunov

Merge branch 'cngo-fix-object-prop-default' into 'master'

Fix object prop default to empty object

See merge request gitlab-org/gitlab!66650
parents a67734ba 74ef2614
...@@ -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: {
......
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,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