@salesforcedevs/dx-components 0.10.1-alpha.121 → 0.10.1-alpha.122
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
|
@@ -125,18 +125,21 @@ export default class SidebarSearch extends LightningElement {
|
|
|
125
125
|
|
|
126
126
|
private initializeUserSession() {
|
|
127
127
|
const stringified = window.sessionStorage.getItem(SESSION_KEY);
|
|
128
|
+
console.log('initializing', stringified)
|
|
128
129
|
if (!stringified) {
|
|
129
130
|
return;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
try {
|
|
133
134
|
const json = JSON.parse(stringified);
|
|
135
|
+
console.log(json.coveoAdvancedQueryConfig, this.coveoAdvancedQueryConfig, hasSameConfig)
|
|
134
136
|
const hasSameConfig = json.coveoAdvancedQueryConfig
|
|
135
137
|
.entries()
|
|
136
138
|
.every(
|
|
137
139
|
([key, value]: [string, string]) =>
|
|
138
140
|
this.coveoAdvancedQueryConfig[key] === value
|
|
139
141
|
);
|
|
142
|
+
|
|
140
143
|
const hasSameQuery = json?.state?.query?.q === this.value;
|
|
141
144
|
if (hasSameConfig && hasSameQuery) {
|
|
142
145
|
console.log(
|