We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82a8aad commit 365ab3aCopy full SHA for 365ab3a
1 file changed
lib/stack/label/index.js
@@ -16,7 +16,7 @@ export function Label (http, data) {
16
17
if (data.label) {
18
Object.assign(this, cloneDeep(data.label))
19
- this.urlPath = `labels/${this.uid}`
+ this.urlPath = `/labels/${this.uid}`
20
/**
21
* @description The Update label call is used to update an existing label.
22
* @memberof Label
@@ -103,7 +103,7 @@ export function Label (http, data) {
103
}
104
105
export function LabelCollection (http, data) {
106
- const obj = cloneDeep(data.labels)
+ const obj = cloneDeep(data.labels) || []
107
const labelCollection = obj.map((userdata) => {
108
return new Label(http, { label: userdata, stackHeaders: data.stackHeaders })
109
})
0 commit comments