Frun1na opened a new pull request, #4938:
URL: https://github.com/apache/rocketmq-dashboard/pull/4938

   ### Which Issue(s) This PR Fixes
   
   - Fixes #(issue to be linked)
   
   ### Brief Description
   
   The broker config form edits whole MiB (`maxMessageSizeMB: Math.round(bytes 
/ 1048576)`) and the submit multiplies back. For a persisted value that is not 
MiB-aligned, opening the modal and saving without touching anything rewrote the 
broker's `maxMessageSize` to the rounded value. The original bytes are now 
captured on open and resent while the displayed field still equals their 
rounded value; only an actual edit multiplies.
   
   ### How Did You Test This Change?
   
   ```
   cd web && npx vitest run src/pages/cluster/__tests__/ClusterPage.test.tsx
   
   Test Files  1 passed (1)
        Tests  29 passed (29)
   ```
   


-- 
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]

Reply via email to