mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-01 18:13:49 +00:00
Fix broken toast on private resource delete failure
The delete-error handler in PrivateResourcesTable referenced two i18n keys that do not exist in the message catalog: - console.error used "resourceErrorDelete" (the catalog key is "resourceErrorDelte"), logging a raw key instead of the message. - the toast description passed "v" to formatAxiosError, so a failed delete showed the user a bogus fallback title. Point both at the existing "resourceErrorDelte" key, matching the delete handlers in PublicResourcesTable and ResourcePoliciesTable. No catalog/translation changes, so nothing changes for Crowdin.
This commit is contained in:
@@ -186,11 +186,11 @@ export default function PrivateResourcesTable({
|
||||
});
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(t("resourceErrorDelete"), e);
|
||||
console.error(t("resourceErrorDelte"), e);
|
||||
toast({
|
||||
variant: "destructive",
|
||||
title: t("resourceErrorDelte"),
|
||||
description: formatAxiosError(e, t("v"))
|
||||
description: formatAxiosError(e, t("resourceErrorDelte"))
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user