Skip to content

Commit d91a709

Browse files
samhere06mohas22tumms2021389
authored
Added catch block as failing in instruction text test (#358)
Co-authored-by: mohas22 <[email protected]> Co-authored-by: tumms2021389 <[email protected]>
1 parent 1f60c51 commit d91a709

File tree

1 file changed

+4
-0
lines changed
  • packages/react-sdk-components/src/components/infra/DeferLoad

1 file changed

+4
-0
lines changed

packages/react-sdk-components/src/components/infra/DeferLoad/DeferLoad.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ export default function DeferLoad(props: DeferLoadProps) {
139139
.refreshCaseView(encodeURI(loadViewCaseID), name, '') // 3rd arg empty string until typedef allows optional
140140
.then((data: any) => {
141141
onResponse(data.root);
142+
})
143+
.catch(error => {
144+
// eslint-disable-next-line no-console
145+
console.log(`deferload: ${error}`);
142146
});
143147
}
144148
}, [name, getPConnect, currentLoadedAssignment]);

0 commit comments

Comments
 (0)