mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-18 09:22:47 +08:00
Give each Note a unique id
Otherwise we're overwriting that one note.
This commit is contained in:
@ -41,7 +41,6 @@ class NoteEditor extends StatelessWidget {
|
||||
onPressed: () {
|
||||
var body = noteTextKey.currentState.value;
|
||||
var note = new Note(
|
||||
id: "1",
|
||||
createdAt: _createdAt,
|
||||
body: body,
|
||||
);
|
||||
|
Reference in New Issue
Block a user