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

This commit is contained in:
Tsu-ba-me 2024-05-16 16:41:20 -04:00
parent 237e647cf3
commit cdb2896984
2 changed files with 4 additions and 4 deletions

View File

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

View File

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