logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
7.79k stars 383 forks source link

fix(console): hide error toast for non-existed application in audit logs #6168

Closed charIeszhao closed 4 days ago

charIeszhao commented 4 days ago

Summary

A patch fix to #6021. It seems the error code used in the previous PR was wrong for the scenario that showing deleted application ID in audit logs.

And it has a regression bug that the console keeps popping up the error toast again for deleted application ID.

Testing

Tested locally with a deleted application record in Audit logs, and the error toast did not show up again.

Checklist

- [ ] .changeset - [ ] unit tests - [ ] integration tests - [ ] necessary TSDoc comments

github-actions[bot] commented 4 days ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +152 Bytes

Diff by File |Name|Diff| |---|---| |.changeset/good-shrimps-cover.md|:chart_with_upwards_trend: +143 Bytes| |packages/console/src/components/ApplicationName/index.tsx|:chart_with_upwards_trend: +9 Bytes|