mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Fix problem caused by Rob
This commit is contained in:
parent
b2ee8c9263
commit
679b96286c
@ -10,6 +10,7 @@ class ChessBoard extends React.Component {
|
||||
}
|
||||
|
||||
renderFiles(rankId) {
|
||||
const { store } = this.props;
|
||||
const rank = this.getBoard()[rankId];
|
||||
|
||||
return Object.keys(rank).map((fileId) => {
|
||||
@ -18,7 +19,8 @@ class ChessBoard extends React.Component {
|
||||
file={fileId}
|
||||
key={fileId}
|
||||
rank={rankId}
|
||||
square={rank[fileId]}
|
||||
piece={rank[fileId]}
|
||||
store={store}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user