1
0
Fork 0
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:
Chocobozzz 2018-05-16 09:28:18 +02:00
parent 17c49e60b3
commit 2efd32f697
No known key found for this signature in database
GPG key ID: 583A612D890159BE
8 changed files with 62 additions and 40 deletions

View file

@ -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