We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 171323f commit 21ae9b0Copy full SHA for 21ae9b0
1 file changed
lib/stack/asset/index.js
@@ -25,7 +25,7 @@ export function Asset (http, data = {}) {
25
26
if (data.asset) {
27
Object.assign(this, cloneDeep(data.asset))
28
- this.urlPath = `assets/${this.uid}`
+ this.urlPath = `/assets/${this.uid}`
29
30
/**
31
* @description The Update Asset call lets you update the name and description of an existing Asset.
@@ -223,7 +223,7 @@ export function Asset (http, data = {}) {
223
}
224
225
export function AssetCollection (http, data) {
226
- const obj = cloneDeep(data.assets)
+ const obj = cloneDeep(data.assets) || []
227
const assetCollection = obj.map((userdata) => {
228
return new Asset(http, { asset: userdata, stackHeaders: data.stackHeaders })
229
})
0 commit comments