Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: crash when opening colors

thecodrre678b4d63efc
diff --git a/apps/web/src/common/list-profiles.js b/apps/web/src/common/list-profiles.js
index 32c5f4722..57f000de5 100644
--- a/apps/web/src/common/list-profiles.js
+++ b/apps/web/src/common/list-profiles.js
@@ -22,8 +22,8 @@ const NotesProfile = createProfile(
index={index}
pinnable={!context}
item={item}
- tags={item.tags.slice()}
- notebooks={item.notebooks?.slice()}
+ tags={item.tags?.slice() || []}
+ notebooks={item.notebooks?.slice() || []}
context={context}
/>
),
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.js
index 91be541f4..b7f3641ab 100644
--- a/apps/web/src/components/note/index.js
+++ b/apps/web/src/components/note/index.js
@@ -64,7 +64,7 @@ function Note(props) {
}
}}
header={
- (note.tags.length || notebook) && (
+ (note.tags?.length || notebook) && (
<Flex alignSelf="flex-start" justifySelf="flex-start" mb={1}>
{notebook && (
<IconTag
diff --git a/apps/web/src/components/reminder-bar/index.js b/apps/web/src/components/reminder-bar/index.js
index d982558d0..9fa08b26d 100644
--- a/apps/web/src/components/reminder-bar/index.js
+++ b/apps/web/src/components/reminder-bar/index.js
@@ -7,6 +7,8 @@ import * as Icon from "../icons";
function ReminderBar() {
const reminders = useAppStore((store) => store.reminders);
const reminder = useMemo(() => {
+ if (!reminders) return null;
+
const copy = reminders.slice();
const reminder = copy.sort((a, b) => a.priority - b.priority)[0];
if (!reminder) return;
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 85e40f064..644123ee0 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -2011,7 +2011,7 @@
fastq "^1.6.0"
"@notesnook/desktop@./desktop/":
- version "1.5.1"
+ version "1.5.2"
dependencies:
diary "^0.1.6"
electron-better-ipc "^2.0.1"
@@ -8724,9 +8724,22 @@ normalize-url@^3.0.0:
resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz"
integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==
+notes-core@../notesnook-core/:
+ version "6.8.3"
+ dependencies:
+ "@stablelib/blake2s" "^1.0.1"
+ dayjs "^1.10.6"
+ fast-sort "^2.0.1"
+ lean-he "^2.1.2"
+ no-internet "^1.5.2"
+ qclone "^1.0.4"
+ quill-delta-to-html "^0.12.0"
+ showdown "https://github.com/thecodrr/showdown"
+ spark-md5 "^3.0.1"
+
"notes-core@git+https://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:[email protected]/streetwriters/notesnook-core.git":
version "6.8.3"
- resolved "git+https://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:[email protected]/streetwriters/notesnook-core.git#8c1d1a947cb51a82693646617f414806164a6949"
+ resolved "git+https://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:[email protected]/streetwriters/notesnook-core.git#30423c78a0146ff1df03665ec18bbb53f605cbc8"
dependencies:
"@stablelib/blake2s" "^1.0.1"
dayjs "^1.10.6"