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 19213f9 commit d998186Copy full SHA for d998186
projects/coreui-angular/src/lib/services/local-storage.service.ts
@@ -28,7 +28,7 @@ export class LocalStorageService {
28
}
29
30
public getItem(key: string): any {
31
- const data = JSON.parse(this.#localStorage.getItem(key) ?? 'null');
+ const data = JSON.parse(this.#localStorage.getItem(key) || 'null');
32
this.#data$.next({ key, data });
33
return data;
34
0 commit comments