refactor(striker-ui): align all axios error var naming

main
Tsu-ba-me 8 months ago
parent 237e647cf3
commit cdb2896984
  1. 4
      striker-ui/components/ManageManifest/ManageManifestPanel.tsx
  2. 4
      striker-ui/hooks/useFormUtils.ts

@ -558,8 +558,8 @@ const ManageManifestPanel: FC = () => {
.then(({ data }) => {
setHostOverviews(data);
})
.catch((apiError) => {
handleAPIError(apiError);
.catch((error) => {
handleAPIError(error);
})
.finally(() => {
setIsLoadingHostOverviews(false);

@ -113,8 +113,8 @@ const useFormUtils = <
onSuccess?.call(null);
})
.catch((apiError) => {
const emsg = handleAPIError(apiError);
.catch((error) => {
const emsg = handleAPIError(error);
emsg.children = getErrorMsg(emsg.children);

Loading…
Cancel
Save