Skip to content

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

fix: resolve minor warnings

thecodrr3f40080e9eb0
diff --git a/apps/web/src/components/editor/plugins/picker.js b/apps/web/src/components/editor/plugins/picker.js
index 4eca503ad..54c65062f 100644
--- a/apps/web/src/components/editor/plugins/picker.js
+++ b/apps/web/src/components/editor/plugins/picker.js
@@ -127,7 +127,6 @@ async function pickImage() {
}
async function getEncryptionKey() {
- return { password: "helloworld" };
const key = await db.user.getEncryptionKey();
if (!key) throw new Error("No encryption key found. Are you logged in?");
return key; // { password: "helloworld" };
diff --git a/apps/web/src/components/properties/index.js b/apps/web/src/components/properties/index.js
index fb408c6c2..7d0688566 100644
--- a/apps/web/src/components/properties/index.js
+++ b/apps/web/src/components/properties/index.js
@@ -160,6 +160,7 @@ function Properties({ noteId }) {
return (
<Flex
+ key={notebook.id}
py={2}
px={2}
sx={{
@@ -213,8 +214,8 @@ function Properties({ noteId }) {
attachmentsStatus[attachment.metadata.hash];
return (
<Flex
- //py={2}
- py={0}
+ key={attachment.id}
+ py={1}
px={2}
sx={{
borderBottom: "1px solid var(--border)",
@@ -249,7 +250,7 @@ function Properties({ noteId }) {
}}
/>
)}
- <Flex>
+ <Flex mt={1}>
{attachmentStatus ? (
<Text variant="subBody">
{formatBytes(attachmentStatus.loaded, 1)} of{" "}
diff --git a/apps/web/src/components/status-bar/index.js b/apps/web/src/components/status-bar/index.js
index 070f38d06..ae251be7f 100644
--- a/apps/web/src/components/status-bar/index.js
+++ b/apps/web/src/components/status-bar/index.js
@@ -82,8 +82,8 @@ function StatusBar() {
</Text>
</Button>
)}
- {processingStatuses?.map(({ status, progress }) => (
- <Flex ml={1} alignItems="center" justifyContent="center">
+ {processingStatuses?.map(({ key, status, progress }) => (
+ <Flex key={key} ml={1} alignItems="center" justifyContent="center">
<Icon.Loading size={12} />
<Text variant="subBody" color="bgSecondaryText" ml={1}>
{progress ? `${progress}% ${status}` : status}
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index fad5849ad..ef8524332 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -69,7 +69,7 @@ class AppStore extends BaseStore {
setProcessingStatus = (key, status, progress) => {
this.set((state) => {
if (!status) delete state.processingStatuses[key];
- else state.processingStatuses[key] = { status, progress };
+ else state.processingStatuses[key] = { key, status, progress };
});
};