@flexem/fc-gui 3.0.0-alpha.37 → 3.0.0-alpha.38

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,14 +193,12 @@ 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;
197
- if (null != viewIndex) {
198
- const toggleView = this.viewService.toggleViews.get(this.el);
199
- if (!toggleView) {
200
- return;
201
- }
202
- toggleView(viewIndex, this.hostContainerId, this.el).subscribe();
196
+ const viewIndex = this.host.currentViewIndex || 0;
197
+ const toggleView = this.viewService.toggleViews.get(this.el);
198
+ if (!toggleView) {
199
+ return;
203
200
  }
201
+ toggleView(viewIndex, this.hostContainerId, this.el).subscribe();
204
202
  }
205
203
  };
206
204
  __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.37",
3
+ "version": "3.0.0-alpha.38",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",