mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Fix updating video tags to empty field
This commit is contained in:
parent
17c49e60b3
commit
2efd32f697
8 changed files with 62 additions and 40 deletions
|
@ -35,7 +35,7 @@ function toIntOrNull (value: string) {
|
|||
return validator.toInt(value)
|
||||
}
|
||||
|
||||
function toStringOrNull (value: string) {
|
||||
function toValueOrNull (value: string) {
|
||||
if (value === 'null') return null
|
||||
|
||||
return value
|
||||
|
@ -73,7 +73,7 @@ export {
|
|||
isUUIDValid,
|
||||
isIdOrUUIDValid,
|
||||
isDateValid,
|
||||
toStringOrNull,
|
||||
toValueOrNull,
|
||||
isBooleanValid,
|
||||
toIntOrNull,
|
||||
isFileValid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue