Explorar el Código

fix: Add unique key for library header to resolve dev warnings (#3316)

Aakansha Doshi hace 4 años
padre
commit
77b873251a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/LayerUI.tsx

+ 1 - 1
src/components/LayerUI.tsx

@@ -124,7 +124,7 @@ const LibraryMenuItems = ({
   const referrer = libraryReturnUrl || window.location.origin;
 
   rows.push(
-    <div className="layer-ui__library-header">
+    <div className="layer-ui__library-header" key="library-header">
       <ToolButton
         key="import"
         type="button"