File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
packages/react-sdk-components/src/components/template/SimpleTable/SimpleTableManual Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -258,11 +258,16 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
258258 function generateRowsData ( ) {
259259 // if referenceList is empty and dataPageName property value exists then make a datapage fetch call and get the list of data.
260260 if ( ! referenceList . length && dataPageName ) {
261- getDataPage ( dataPageName , parameters , context ) . then ( listData => {
262- const data = formatRowsData ( listData ) ;
263- myRows = data ;
264- setRowData ( data ) ;
265- } ) ;
261+ getDataPage ( dataPageName , parameters , context )
262+ . then ( listData => {
263+ const data = formatRowsData ( listData ) ;
264+ myRows = data ;
265+ setRowData ( data ) ;
266+ } )
267+ . catch ( e => {
268+ // eslint-disable-next-line no-console
269+ console . log ( e ) ;
270+ } ) ;
266271 } else {
267272 // The referenceList prop has the JSON data for each row to be displayed
268273 // in the table. So, iterate over referenceList to create the dataRows that
You can’t perform that action at this time.
0 commit comments