@salesforcedevs/dx-components 0.10.1-alpha.122 → 0.10.1-alpha.123

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.10.1-alpha.122",
3
+ "version": "0.10.1-alpha.123",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -131,6 +131,7 @@ export default class SidebarSearch extends LightningElement {
131
131
  }
132
132
 
133
133
  try {
134
+ console.log('USE SESSION STORAGE')
134
135
  const json = JSON.parse(stringified);
135
136
  console.log(json.coveoAdvancedQueryConfig, this.coveoAdvancedQueryConfig, hasSameConfig)
136
137
  const hasSameConfig = json.coveoAdvancedQueryConfig
@@ -139,7 +140,6 @@ export default class SidebarSearch extends LightningElement {
139
140
  ([key, value]: [string, string]) =>
140
141
  this.coveoAdvancedQueryConfig[key] === value
141
142
  );
142
-
143
143
  const hasSameQuery = json?.state?.query?.q === this.value;
144
144
  if (hasSameConfig && hasSameQuery) {
145
145
  console.log(
@@ -148,9 +148,8 @@ export default class SidebarSearch extends LightningElement {
148
148
  );
149
149
  this.preloadedState = json?.state;
150
150
  }
151
- } catch (_) {
152
- // Swallow error; no parseable preloaded state
153
- // TODO: might want to clear sessionStorage, alert user(?), etc.
151
+ } catch (e) {
152
+ console.error(e)
154
153
  }
155
154
  }
156
155