1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-21 05:49:37 +02:00

Fix date handling in CollectionModal to set null values for missing start and end dates; update localization files to add new confirmation messages and labels.

This commit is contained in:
Sean Morley 2024-12-28 14:48:30 -05:00
parent 697c40fca0
commit 7cf634def8
10 changed files with 301 additions and 113 deletions

View file

@ -64,6 +64,11 @@
collection.start_date = collection.end_date;
}
if (!collection.start_date && !collection.end_date) {
collection.start_date = null;
collection.end_date = null;
}
if (collection.id === '') {
let res = await fetch('/api/collections', {
method: 'POST',