From 06d947ca88880a3fa2b097d2b0a1554c5cd2462f Mon Sep 17 00:00:00 2001 From: Martin Litvaj Date: Tue, 20 Dec 2022 22:58:18 +0100 Subject: [PATCH] #39694 Fix "two children with the same key" warning when using --- components/message/useMessage.tsx | 2 +- components/notification/useNotification.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/message/useMessage.tsx b/components/message/useMessage.tsx index 08899fddbbef..529f94cda737 100644 --- a/components/message/useMessage.tsx +++ b/components/message/useMessage.tsx @@ -212,7 +212,7 @@ export function useInternalMessage( }, []); // ============================== Return =============================== - return [wrapAPI, ]; + return [wrapAPI, ]; } export default function useMessage(notificationConfig?: ConfigOptions) { diff --git a/components/notification/useNotification.tsx b/components/notification/useNotification.tsx index c58d95730ff4..c61c80aff32b 100644 --- a/components/notification/useNotification.tsx +++ b/components/notification/useNotification.tsx @@ -160,7 +160,7 @@ export function useInternalNotification( }, []); // ============================== Return =============================== - return [wrapAPI, ]; + return [wrapAPI, ]; } export default function useNotification(notificationConfig?: NotificationConfig) {