We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffd0381 commit 2970404Copy full SHA for 2970404
libs/ngxs/storage/utils/deserialize-by-storage-meta.ts
@@ -34,7 +34,11 @@ export function deserializeByStorageMeta<T>(
34
throw new InvalidStructureDataException(`"${value}" not an object`);
35
}
36
37
-function versionIsInvalid<T>(meta: StorageMeta<T>): boolean {
+function versionIsInvalid<T>(meta?: StorageMeta<T> | null): boolean {
38
+ if (!meta) {
39
+ return true;
40
+ }
41
+
42
const version: number = parseFloat(meta.version?.toString() ?? '');
43
44
return (
0 commit comments