mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
Ensured title is not sent when its value is empty during short URL creation/edition
This commit is contained in:
parent
eea76d88c3
commit
d5e20f445d
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ export const ShortUrlForm = (
|
|||
validSince: formatIsoDate(shortUrlData.validSince) ?? null,
|
||||
validUntil: formatIsoDate(shortUrlData.validUntil) ?? null,
|
||||
maxVisits: !hasValue(shortUrlData.maxVisits) ? null : Number(shortUrlData.maxVisits),
|
||||
title: !hasValue(shortUrlData.title) ? undefined : shortUrlData.title,
|
||||
}).then(() => !isEdit && reset()).catch(() => {}));
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in a new issue