Skip to content

Commit

Permalink
Merge pull request #96 from jparkhouse:fixing-empty-note-bug
Browse files Browse the repository at this point in the history
Fixing-empty-note-bug
  • Loading branch information
jparkhouse authored Aug 23, 2024
2 parents 5ad35ae + 9df9871 commit ca4618d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/components/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@
const noteField = (document.getElementById("noteField") as HTMLInputElement)
.value as string;
if ($activeMenuCard) {
if (noteField) {
notesOnCardsStore.set($activeMenuCard, { note: noteField });
}
notesOnCardsStore.set($activeMenuCard, { note: noteField });
activeMenuCard.set(null);
}
cardsSelectedStore.set(new Set<number>());
Expand Down

0 comments on commit ca4618d

Please sign in to comment.