I’m having trouble editing my child theme with cornerstone. The call to cornerstone-endpoint returns an array of gzipped content, but one element of the array is a null string and not JSON, which errors and potentially stops the editor loading.
Does anyone have any insights on this?
I believe its this gzipped empty JSON string that causes the error.
{“success”:true,“data”:[{“name”:“adapter::options/value::0”,“success”:true,“data”:“eNoDAAAAAAE=”,“gzip”:true},
The warning occurs here …
return JSON.parse(t.default.inflate(n.default.decodeToByteArray(e), {
to: "string"
}))
} catch (e) {
console.warn("Failed to inflate gzip data", e)
}
return e
},
Which results in this error …
_pushInternalModel: function(e) {
e.type
var t = this._load(e)
return this._setupRelationshipsForModel(t, e),
t
},
Uncaught TypeError: Cannot read property ‘type’ of undefined