Skip to content

Commit a5c57de

Browse files
committed
1,637th Commit
1 parent 6880e8b commit a5c57de

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ui/src/utilities/request/request.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ export default async <T>(request: FetchRequest, options?: FetchOptions) => {
5151
return response as FetchResponse<T>;
5252
}
5353

54+
if (!fetchError.response) {
55+
const notification = useNotification();
56+
57+
notification.actions.add({
58+
message: 'Something went wrong...',
59+
color: 'danger',
60+
});
61+
}
62+
5463
return fetchError.response as FetchResponse<T>;
5564
}
5665
};

0 commit comments

Comments
 (0)