We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff55958 commit 3b64218Copy full SHA for 3b64218
src/shell/store/models.js
@@ -99,15 +99,21 @@ export function fetchModel(modelZUID) {
99
type: "FETCH_MODEL_SUCCESS",
100
payload: res.data,
101
});
102
+ } else if (res.status === 404) {
103
+ /*
104
+ Do nothing; this most likely means the model existed at one point
105
+ and was deleted. This action may be improved in the future if
106
+ the ability to fetch deleted items is added to the api
107
+ */
108
} else {
109
dispatch(
110
notify({
111
kind: "warn",
112
message: `Failed to fetch models`,
113
})
114
);
- if (res.error || res.status === 404) {
- throw new Error(res.error);
115
+ if (res.error || res.message) {
116
+ throw new Error(res.error || res.message);
117
}
118
119
},
0 commit comments