@websy/websy-designs 1.6.2 → 1.6.3

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.
@@ -341,6 +341,7 @@ class PGHelper {
341
341
  }
342
342
  execute (query) {
343
343
  return new Promise((resolve, reject) => {
344
+ // console.log(query)
344
345
  if (query !== null) {
345
346
  this.client.query(query, (err, queryResponse) => {
346
347
  if (err) {
@@ -4183,6 +4183,9 @@ class WebsyRouter {
4183
4183
  }
4184
4184
  }
4185
4185
  showView (view, params, group) {
4186
+ if (view === '/' || view === '') {
4187
+ view = this.options.defaultView || ''
4188
+ }
4186
4189
  this.activateItem(view, this.options.triggerClass)
4187
4190
  this.activateItem(view, this.options.viewClass)
4188
4191
  let children = this.getActiveViewsFromParent(view)
@@ -4585,6 +4585,10 @@ var WebsyRouter = /*#__PURE__*/function () {
4585
4585
  }, {
4586
4586
  key: "showView",
4587
4587
  value: function showView(view, params, group) {
4588
+ if (view === '/' || view === '') {
4589
+ view = this.options.defaultView || '';
4590
+ }
4591
+
4588
4592
  this.activateItem(view, this.options.triggerClass);
4589
4593
  this.activateItem(view, this.options.viewClass);
4590
4594
  var children = this.getActiveViewsFromParent(view);