@veloceapps/sdk 5.0.0 → 5.0.1

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.
@@ -1343,12 +1343,12 @@
1343
1343
  };
1344
1344
  ConfigurationPlugin.prototype.registerType = function () {
1345
1345
  var _this = this;
1346
- var remove = function (id) {
1346
+ var remove = function () {
1347
1347
  var rootLineItem = _this.configurationService.getSnapshot();
1348
- if (!rootLineItem) {
1348
+ if (!rootLineItem || !_this.modelSnapshot) {
1349
1349
  return;
1350
1350
  }
1351
- _this.configurationService.patch(new i2.LineItemWorker(rootLineItem).remove(id).li);
1351
+ _this.configurationService.patch(new i2.LineItemWorker(rootLineItem).remove(_this.modelSnapshot.id).li);
1352
1352
  };
1353
1353
  this.typeHost.remove = remove;
1354
1354
  };