Fix flow type

This commit is contained in:
Lucas Cordeiro
2019-04-10 14:28:48 -03:00
parent 0f955980a3
commit 99a1e07aa6
+2 -2
View File
@@ -1,6 +1,7 @@
// @flow
import React, { useState } from 'react';
import type { Element } from 'react';
import EditableValue from './EditableValue';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
@@ -112,8 +113,7 @@ export default function KeyValue({
);
} else {
children = open
? // $FlowFixMe "Missing type annotation for U" whatever that means
Object.entries(value).map(([name, value]) => (
? Object.entries(value).map<Element<any>>(([name, value]) => (
<KeyValue
key={name}
depth={depth + 1}