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:
jaisinha77777
2026-07-01 07:04:54 +05:30
parent cfbbdedaf5
commit 31f675f38c

View File

@@ -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"))
});
}
};