@urso/core 0.7.70 → 0.7.71
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
|
@@ -302,6 +302,11 @@ class ModulesObjectsModelsSpine extends ModulesObjectsBaseModel {
|
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
_addToSlot(slotName, object, replaceSlotContents) {
|
|
305
|
+
if (!object?._baseObject) {
|
|
306
|
+
Urso.logger.warn('ModulesObjectsModelsSpine _addToSlot error: invalid object ' + object);
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
|
|
305
310
|
const spine = this._baseObject;
|
|
306
311
|
const slotIndex = spine.spineData.slots.findIndex(({ name }) => name === slotName);
|
|
307
312
|
const currentSlot = spine.slotContainers[slotIndex];
|