Yanghanrui666 opened a new pull request, #4359: URL: https://github.com/apache/rocketmq-dashboard/pull/4359
## What is the purpose of the change Fixes #4354. The Studio Proxy page persisted `clusterId` only when the input became non-empty. Clearing the input left the previous value in `localStorage`, so a reload restored the stale filter. This change removes the stored value when the input is cleared and preserves persistence for non-empty values. ## Brief changelog - Remove `localStorage.clusterId` when the Proxy page Cluster ID input is empty. - Add a regression test covering persisted-value removal and the `DefaultCluster` fallback after remounting. ## Verifying this change - `npm test -- src/pages/studio/__tests__/Proxy.test.tsx` — 15 passed. - `npm run build` — passed. - `npm run lint` — 0 errors (existing repository warnings only). -- 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]
