fix new channel creation crash
This commit is contained in:
parent
a0e073b416
commit
4624188a85
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ export const makeSelectMetadataForUri = (uri: string) =>
|
|||
|
||||
export const makeSelectMetadataItemForUri = (uri: string, key: string) =>
|
||||
createSelector(makeSelectMetadataForUri(uri), (metadata: ChannelMetadata | StreamMetadata) => {
|
||||
if (key === 'tags') {
|
||||
if (metadata && metadata.tags && key === 'tags') {
|
||||
return metadata.tags ? metadata.tags.filter((tag) => !INTERNAL_TAGS.includes(tag)) : [];
|
||||
}
|
||||
return metadata ? metadata[key] : undefined;
|
||||
|
|
Loading…
Reference in a new issue