Skip to content
Snippets Groups Projects
Verified Commit b5c8c9ba authored by Dennis Collaris's avatar Dennis Collaris
Browse files

fix: silence missing key warning from react

parent 596274a5
No related branches found
No related tags found
1 merge request!204feat: schema panel tooltips, redesigned tooltip, minimap configuration option
...@@ -19,7 +19,7 @@ export const NLPopUp: React.FC<NLPopUpProps> = ({ data }) => { ...@@ -19,7 +19,7 @@ export const NLPopUp: React.FC<NLPopUpProps> = ({ data }) => {
</div> </div>
) : ( ) : (
Object.entries(data).map(([k, v], index) => ( Object.entries(data).map(([k, v], index) => (
<div className="flex flex-row gap-1 items-center min-h-5"> <div className="flex flex-row gap-1 items-center min-h-5" key={k}>
<span className={`font-semibold truncate min-w-[40%]`}>{k}</span> <span className={`font-semibold truncate min-w-[40%]`}>{k}</span>
<span className="ml-auto text-right truncate grow-1 flex items-center"> <span className="ml-auto text-right truncate grow-1 flex items-center">
{v !== undefined && (typeof v !== 'object' || Array.isArray(v)) && v != '' ? ( {v !== undefined && (typeof v !== 'object' || Array.isArray(v)) && v != '' ? (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment