added 1 to rowsCount in Table to able focus on last row

This commit is contained in:
ronronscelestes 2021-08-17 14:58:05 +02:00
parent b94448218c
commit 975b1e984d

View File

@ -13,7 +13,7 @@ import {
useRBAC,
LoadingIndicatorPage,
useNotification,
useFocusWhenNavigate
useFocusWhenNavigate,
} from '@strapi/helper-plugin';
import { HeaderLayout, Layout, ContentLayout } from '@strapi/parts/Layout';
@ -36,7 +36,6 @@ import reducer, { initialState } from './reducer';
import PageTitle from '../../../components/SettingsPageTitle';
import adminPermissions from '../../../permissions';
function ListView() {
const {
isLoading,
@ -249,7 +248,7 @@ function ListView() {
{rowsCount > 0 ? (
<Table
colCount={5}
rowCount={rowsCount}
rowCount={rowsCount + 1}
footer={
<TFooter
onClick={() => (canCreate ? handleGoTo('create') : {})}