diff --git a/src/pages/BandiPreInstructor/components/AllBandiPreInstructorTableAsync/index.js b/src/pages/BandiPreInstructor/components/AllBandiPreInstructorTableAsync/index.js index 50c3c0a..853808e 100644 --- a/src/pages/BandiPreInstructor/components/AllBandiPreInstructorTableAsync/index.js +++ b/src/pages/BandiPreInstructor/components/AllBandiPreInstructorTableAsync/index.js @@ -24,7 +24,7 @@ import ProperBandoLabel from '../../../../components/ProperBandoLabel'; import { Dropdown } from 'primereact/dropdown'; import { Tag } from 'primereact/tag'; import { Calendar } from 'primereact/calendar'; -import { storeSet } from '../../../../store'; +import { storeGet, storeSet } from '../../../../store'; const AllBandiPreInstructorTableAsync = () => { @@ -46,6 +46,8 @@ const AllBandiPreInstructorTableAsync = () => { }); const statuses = ['DRAFT','PUBLISH','EXPIRED']; + const role = storeGet('getRole') + const getPaginationQuery = useCallback(() => getQueryParamsForPaginatedEndpoint(lazyState, statuses, 'id'), [lazyState]); const onPage = (event) => { @@ -94,7 +96,10 @@ const AllBandiPreInstructorTableAsync = () => {