diff --git a/src/renderers/CRUD.tsx b/src/renderers/CRUD.tsx index 7f235da9f..453021a5a 100644 --- a/src/renderers/CRUD.tsx +++ b/src/renderers/CRUD.tsx @@ -317,7 +317,7 @@ export default class CRUD extends React.Component { 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,