@flexem/fc-gui 3.0.0-alpha.56 → 3.0.0-alpha.57

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.
@@ -193,12 +193,15 @@ let GuiComponent = class GuiComponent {
193
193
  this.globalSettings.displayMode = this.isMobileMode ? DisplayMode.Mobile : DisplayMode.Web;
194
194
  }
195
195
  refreshCurrentPage() {
196
- const viewIndex = this.host.currentViewIndex || 0;
196
+ if (this.host.currentViewIndex === undefined) {
197
+ this.onProviderChanged(null, this.host.context);
198
+ return;
199
+ }
197
200
  const toggleView = this.viewService.toggleViews.get(this.el);
198
201
  if (!toggleView) {
199
202
  return;
200
203
  }
201
- toggleView(viewIndex, this.hostContainerId, this.el).subscribe();
204
+ toggleView(this.host.currentViewIndex, this.hostContainerId, this.el).subscribe();
202
205
  }
203
206
  };
204
207
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.56",
3
+ "version": "3.0.0-alpha.57",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",