tangled
alpha
login
or
join now
cosmik.network
/
semble
43
fork
atom
A social knowledge tool for researchers built on ATProto
43
fork
atom
overview
issues
13
pulls
pipelines
feat: return early if note hasn't changed on save
Pouria Delfanazari
4 months ago
6b8c7fb4
17e006b1
+9
-1
1 changed file
expand all
collapse all
unified
split
src
webapp
features
notes
components
noteCardModal
NoteCardModalContent.tsx
+9
-1
src/webapp/features/notes/components/noteCardModal/NoteCardModalContent.tsx
···
54
54
};
55
55
56
56
const handleUpdateNote = () => {
57
57
-
if (!props.note || !note) return;
57
57
+
if (!props.note || !note) {
58
58
+
props.onClose();
59
59
+
return;
60
60
+
}
61
61
+
62
62
+
if (props.note.text === note) {
63
63
+
props.onClose();
64
64
+
return;
65
65
+
}
58
66
59
67
updateNote.mutate(
60
68
{