mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
check if value is null in tag store validity check
This commit is contained in:
parent
1c5b07086e
commit
a771fb1213
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ function clearTags() {
|
|||
* @returns {value is TagData}
|
||||
*/
|
||||
function isValidStoredTag(value) {
|
||||
if ('id' in value && 'name' in value && 'images' in value && 'spoiler_image_uri' in value) {
|
||||
if (value !== null && 'id' in value && 'name' in value && 'images' in value && 'spoiler_image_uri' in value) {
|
||||
return typeof value.id === 'number'
|
||||
&& typeof value.name === 'string'
|
||||
&& typeof value.images === 'number'
|
||||
|
|
Loading…
Reference in a new issue