mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
修复crud数据未初始化时,dialog无法弹出问题
This commit is contained in:
parent
be397a2dd2
commit
bbd39f290d
@ -317,7 +317,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
||||
if (action.actionType === 'dialog') {
|
||||
store.setCurrentAction(action);
|
||||
const idx: number = (ctx as any).index;
|
||||
const length = store.data.items.length;
|
||||
const length = store.items.length;
|
||||
stopAutoRefreshWhenModalIsOpen && clearTimeout(this.timer);
|
||||
store.openDialog(ctx, {
|
||||
hasNext: idx < length - 1,
|
||||
|
Loading…
Reference in New Issue
Block a user