We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87e4a33 commit 056351dCopy full SHA for 056351d
1 file changed
src/app/correlation-id/correlation-id.service.ts
@@ -20,7 +20,10 @@ import {
20
CORRELATION_ID_COOKIE,
21
CORRELATION_ID_OREJIME_KEY,
22
} from '../shared/cookies/orejime-configuration';
23
-import { isEmpty } from '../shared/empty.util';
+import {
24
+ hasValue,
25
+ isEmpty,
26
+} from '../shared/empty.util';
27
import { SetCorrelationIdAction } from './correlation-id.actions';
28
import { correlationIdSelector } from './correlation-id.selector';
29
@@ -49,7 +52,7 @@ export class CorrelationIdService {
49
52
*/
50
53
initCorrelationId(): void {
51
54
this.orejimeService?.getSavedPreferences().subscribe(preferences => {
- if (preferences[CORRELATION_ID_OREJIME_KEY]) {
55
+ if (hasValue(preferences) && preferences[CORRELATION_ID_OREJIME_KEY]) {
56
this.setCorrelationId();
57
}
58
},
0 commit comments