File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import type { BackgroundModuleRemoteInterfaces } from 'src/background-script/typ
24
24
import type { SharedListMetadata } from 'src/content-sharing/background/types'
25
25
import { DEFAULT_KEY } from '@worldbrain/memex-common/lib/utils/item-ordering'
26
26
import { createSyncSettingsStore } from 'src/sync-settings/util'
27
+ import { HIGHLIGHT_COLORS_DEFAULT } from '@worldbrain/memex-common/lib/common-ui/components/highlightColorPicker/constants'
27
28
28
29
export const reshapeAnnotationForCache = (
29
30
annot : Annotation & {
@@ -259,9 +260,9 @@ export async function hydrateCacheForPageAnnotations(
259
260
const syncSettingsStore = createSyncSettingsStore ( {
260
261
syncSettingsBG : args . bgModules . syncSettings ,
261
262
} )
262
- const highlightColors = await syncSettingsStore . highlightColors . get (
263
- 'highlightColors' ,
264
- )
263
+ const highlightColors =
264
+ ( await syncSettingsStore . highlightColors . get ( 'highlightColors' ) ) ??
265
+ HIGHLIGHT_COLORS_DEFAULT
265
266
args . cache . setHighlightColorDictionary ( highlightColors )
266
267
267
268
args . cache . setAnnotations (
You can’t perform that action at this time.
0 commit comments