handle null parameter for createNormalizedTagKey
This commit is contained in:
parent
e3d12fb896
commit
67a654f606
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -1243,7 +1243,7 @@ const isClaimNsfw = claim => {
|
|||
};
|
||||
|
||||
const createNormalizedTagKey = tags => {
|
||||
return tags.sort().join(',');
|
||||
return tags ? tags.sort().join(',') : '';
|
||||
};
|
||||
|
||||
//
|
||||
|
|
|
@ -24,5 +24,5 @@ export const isClaimNsfw = (claim: Claim): boolean => {
|
|||
};
|
||||
|
||||
export const createNormalizedTagKey = (tags: Array<string>): string => {
|
||||
return tags.sort().join(',');
|
||||
return tags ? tags.sort().join(',') : '';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue