Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add table unique key warning & fix record key bug #3166

Merged
merged 1 commit into from
Sep 27, 2016

Conversation

noonnightstorm
Copy link
Contributor

@mention-bot
Copy link

@noonnightstorm, thanks for your PR! By analyzing the annotation information on this pull request, we identified @benjycui, @afc163 and @ddcat1115 to be potential reviewers

return record[rowKey as string] || index;
let recordKey = record[rowKey as string] !== undefined ? record[rowKey as string] : index;
warning(recordKey !== undefined,
'Each record in table should have a unique "key" prop.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实这个是习惯用反撇号的 key

@noonnightstorm
Copy link
Contributor Author

@benjycui done

@afc163
Copy link
Member

afc163 commented Sep 27, 2016

没理我呀。。

@noonnightstorm
Copy link
Contributor Author

@afc163 done & rebase了以前的commit

@benjycui benjycui merged commit a7ba900 into ant-design:master Sep 27, 2016
@zhanfenghai
Copy link

在dataSource 里每个对象都有添加key,还是报错,在本地写死数据没问题,从后台拉取就会报错
image

@yesmeck
Copy link
Member

yesmeck commented Dec 16, 2016

@zhanfenghai 如果认为是 bug 请按模板开新 issue,如果是使用问题建议上 stackoverflow 或者 segmentfault 上问。这样没头没脑的说一句,别人很难帮到你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants