Frun1na commented on code in PR #4619:
URL:
https://github.com/apache/rocketmq-dashboard/pull/4619#discussion_r4058036517
##########
web/src/pages/cluster/certs.tsx:
##########
@@ -70,7 +72,7 @@ const K8sCertsPage = () => {
if (active) setCerts(data);
})
.catch((error: unknown) => {
- if (active) message.error(getErrorMessage(error));
+ if (active) message.error(getErrorMessage(error,
t('cert.requestFailed')));
Review Comment:
Good catch — fixed in 7054b953: the effect now lists `t` in its dependency
array, so a failure toast raised after a language switch uses the current
language instead of a stale one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]