Bug fix when creating new Entry
This commit is contained in:
@@ -248,7 +248,7 @@ async function handle_update_journal() {
|
|||||||
console.log('New journal entry created:', results);
|
console.log('New journal entry created:', results);
|
||||||
$journals_slct.journal_entry_id = results?.journal_entry_id_random;
|
$journals_slct.journal_entry_id = results?.journal_entry_id_random;
|
||||||
// $journals_loc.entry.edit = true;
|
// $journals_loc.entry.edit = true;
|
||||||
$journals_loc.entry.edit_kv[$journals_slct.journal_entry_id] = true;
|
$journals_loc.entry.edit_kv[$journals_slct.journal_entry_id] = 'current';
|
||||||
// alert(`Journal entry created successfully! ${$journals_slct.journal_entry_id}`);
|
// alert(`Journal entry created successfully! ${$journals_slct.journal_entry_id}`);
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error('Error updating journal entry:', error);
|
console.error('Error updating journal entry:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user