Open JaosnHsieh opened 5 years ago
1.13.1
Work as flat array of <ColumnDefinition> is flat elements.
<ColumnDefinition>
TypeError: Cannot read property 'id' of undefined
const data = [ { name: "data1", name1: 111, name2: 222 }, { name: "data2", name1: 333, name2: 444 } ]; class App extends Component { render() { return ( <Griddle data={data} plugins={[plugins.LocalPlugin]}> <RowDefinition> <ColumnDefinition id={"name"} title={"name"} /> {["name1", "name2"].map(c => { return <ColumnDefinition key={c} id={c} title={c} />; })} </RowDefinition> </Griddle> ); } }
Griddle version
1.13.1
Expected Behavior
Work as flat array of
<ColumnDefinition>
is flat elements.Actual Behavior
Steps to reproduce