Notification: fix "missing key in list" error

This commit is contained in:
infinite-persistence 2022-02-16 16:21:05 +08:00
parent d4f26c4272
commit c512b1147e
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -112,7 +112,9 @@ export default function Notification(props: Props) {
let uriIndicator;
const title = titleSplit.map((message, index) => {
if (channelName === message) {
uriIndicator = <UriIndicator uri={channelUrl} link channelInfo={{ uri: channelUrl, name: channelName }} />;
uriIndicator = (
<UriIndicator key={channelUrl} uri={channelUrl} link channelInfo={{ uri: channelUrl, name: channelName }} />
);
fullTitle.push(' ');
const resultTitle = fullTitle;
fullTitle = [' '];