fix trim()
All checks were successful
CI / update (push) Successful in 14s

This commit is contained in:
Alexander Bocken 2024-08-27 18:13:52 +02:00
parent 470a74099f
commit 87768b539f
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@
console.log(img_local)
const data = {
image: img_local,
name: short_name,
name: short_name.trim(),
}
await fetch(`/api/rezepte/img/add`, {
method: 'POST',
@ -108,7 +108,7 @@
recipe: {
...card_data,
...add_info,
images: {mediapath: short_name + '.webp', alt: "", caption: ""}, // TODO
images: {mediapath: short_name.trim() + '.webp', alt: "", caption: ""}, // TODO
season: season_local,
short_name : short_name.trim(),
portions: portions_local,

View File

@ -208,7 +208,7 @@
...add_info,
images, // TODO
season: season_local,
short_name short_name.trim(),
short_name: short_name.trim(),
datecreated,
portions: portions_local,
datemodified,