@onehat/data 1.22.33 → 1.22.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -325,6 +325,10 @@ class OneBuildRepository extends AjaxRepository {
|
|
|
325
325
|
}),
|
|
326
326
|
method: 'POST',
|
|
327
327
|
baseURL: this.api.baseURL,
|
|
328
|
+
headers: _.merge({
|
|
329
|
+
Accept: 'application/json',
|
|
330
|
+
}, this.headers),
|
|
331
|
+
timeout: this.timeout,
|
|
328
332
|
};
|
|
329
333
|
|
|
330
334
|
if (this.debugMode) {
|
|
@@ -395,8 +399,7 @@ class OneBuildRepository extends AjaxRepository {
|
|
|
395
399
|
async loadOneAdditionalEntity(id) {
|
|
396
400
|
const entity = await this.getSingleEntityFromServer(id);
|
|
397
401
|
if (!entity) {
|
|
398
|
-
|
|
399
|
-
return;
|
|
402
|
+
return null;
|
|
400
403
|
}
|
|
401
404
|
|
|
402
405
|
this._relayEntityEvents(entity);
|