aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-07 10:28:33 -0500
committerbobzel <zzzman@gmail.com>2025-03-07 10:28:33 -0500
commit1a80d0b26541b9881120b17051378a9e16055b8b (patch)
tree17ce360222d7cc0a5193af73bd01fb1d8a90a490 /src
parentccf4d9438012ed7d2e19e4a55166f1bc6ce3e952 (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/formattedText/DailyJournal.tsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/client/views/nodes/formattedText/DailyJournal.tsx b/src/client/views/nodes/formattedText/DailyJournal.tsx
index 25bb44924..ec1f7a023 100644
--- a/src/client/views/nodes/formattedText/DailyJournal.tsx
+++ b/src/client/views/nodes/formattedText/DailyJournal.tsx
@@ -75,13 +75,8 @@ export class DailyJournal extends ViewBoxAnnotatableComponent<FieldViewProps>()
componentDidMount(): void {
console.log('componentDidMount() triggered...');
- this.setDailyTitle();
- this.setDailyText();
- }
-
- componentDidUpdate(prevProps: Readonly<FormattedTextBoxProps>): void {
- console.log('componentDidUpdate() triggered...');
- super.componentDidUpdate(prevProps);
+ // bcz: This should be moved into Docs.Create.DailyJournalDocument()
+ // otherwise, it will override all the text whenever the note is reloaded
this.setDailyTitle();
this.setDailyText();
}