Skip to content

Commit 23ae39f

Browse files
fix(cc-network-group-dashboard): prevent error when 404
Since the `@clevercloud/client` package returns `null` instead of throwing when facing a `404` response, we need to make sure the code stops after setting the component state to `error` if data is null
1 parent 0ee2811 commit 23ae39f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/cc-network-group-dashboard/cc-network-group-dashboard.smart.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ defineSmartComponent({
3535
.then((ng) => {
3636
if (ng == null) {
3737
updateComponent('state', { type: 'error' });
38+
return;
3839
}
3940

4041
updateComponent('state', {

0 commit comments

Comments
 (0)