Fix React error #31 on admin rebuild image button#545
Conversation
The retryBuild API returns a JSON object { message, description }, but
the toast success handler was passing the entire object as a React child.
Extract response.message so react-hot-toast receives a renderable string.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughUpdated a notification success handler in a Docker image component to access the message field directly from the response object instead of using a prior parameter reference, affecting only one line of code. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip Migrating from UI to YAML configuration.Use the |
|
Visit the preview URL for this PR (updated for commit 087fa15): https://game-ci-5559f--pr545-fix-admin-rebuild-to-xric3irz.web.app (expires Fri, 27 Mar 2026 16:41:14 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 1f0574f15f83e11bfc148eae8646486a6d0e078b |
|
Confirmed tested |

Summary
retryBuildAPI returns{ message, description }, but the toast success handler was passing the entire object to react-hot-toast instead of extracting the string(message) => messageto(response) => response.messageTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit