This commit is contained in:
Sean Macfarlane
2020-08-04 14:36:40 -04:00
parent aaf14b0d0a
commit 0108229ddb
2 changed files with 4 additions and 6 deletions

View File

@@ -165,9 +165,8 @@ const AccessPoints = ({ checkedLocations }) => {
isLastPage={ isLastPage={
equipData && equipData.filterEquipment && equipData.filterEquipment.context.lastPage equipData && equipData.filterEquipment && equipData.filterEquipment.context.lastPage
} }
onLoading={loading} loading={loading}
onError={error} error={error && !equipData?.filterEquipment?.items && 'Failed to load equipment.'}
errorDescription="Failed to load equipment."
/> />
); );
}; };

View File

@@ -90,9 +90,8 @@ const ClientDevices = ({ checkedLocations }) => {
tableData={data && data.filterClientSessions && data.filterClientSessions.items} tableData={data && data.filterClientSessions && data.filterClientSessions.items}
onLoadMore={handleLoadMore} onLoadMore={handleLoadMore}
isLastPage={data && data.filterClientSessions && data.filterClientSessions.context.lastPage} isLastPage={data && data.filterClientSessions && data.filterClientSessions.context.lastPage}
onLoading={loading} loading={loading}
onError={error} error={error && !data?.filterClientSessions?.items && 'Failed to load client devices.'}
errorDescription="Failed to load client devices."
/> />
); );
}; };