Skip to content

Commit

Permalink
Remember old control tags on channel edit
Browse files Browse the repository at this point in the history
  • Loading branch information
miko authored and tzarebczan committed Apr 11, 2024
1 parent ad84571 commit cfb027a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/redux/selectors/claims.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
getChannelPermanentUrlFromClaim,
} from 'util/claim';
import * as CLAIM from 'constants/claim';
import { INTERNAL_TAGS, MEMBERS_ONLY_CONTENT_TAG, RESTRICTED_CHAT_COMMENTS_TAG } from 'constants/tags';
import { MEMBERS_ONLY_CONTENT_TAG, RESTRICTED_CHAT_COMMENTS_TAG } from 'constants/tags';
import { getGeoRestrictionForClaim } from 'util/geoRestriction';
import { parsePurchaseTag, parseRentalTag } from 'util/stripe';
import { removeInternalStringTags } from 'util/tags';
Expand Down Expand Up @@ -509,7 +509,7 @@ export const makeSelectMetadataForUri = (uri: string) =>
export const makeSelectMetadataItemForUri = (uri: string, key: string) =>
createSelector(makeSelectMetadataForUri(uri), (metadata: ChannelMetadata | StreamMetadata) => {
if (metadata && metadata.tags && key === 'tags') {
return metadata.tags ? metadata.tags.filter((tag) => !INTERNAL_TAGS.includes(tag)) : [];
return metadata.tags || [];
}
return metadata ? metadata[key] : undefined;
});
Expand Down

0 comments on commit cfb027a

Please sign in to comment.