We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38c94d0 commit df7d56bCopy full SHA for df7d56b
packages/sds/src/message_channel/mem_local_history.ts
@@ -159,11 +159,7 @@ export class MemLocalHistory implements ILocalHistory {
159
}
160
161
private load(): void {
162
- if (!this.storage) {
163
- return;
164
- }
165
-
166
- const messages = this.storage.load();
+ const messages = this.storage?.load() ?? [];
167
if (messages.length > 0) {
168
this.items = messages;
169
0 commit comments