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

   ## Summary
   - append saved NameServer addresses with a functional state update
   - deduplicate against the latest address list instead of a request-time 
snapshot
   - clear the address input only when it still belongs to the completed request
   - cover out-of-order concurrent additions and newer input with a regression 
test
   
   ## Root cause and impact
   The asynchronous add handler spread `namesrvAddrList` captured before the 
request. Two overlapping successful additions therefore wrote independent 
copies of the same old list, and the last completion hid the other saved 
address. Each completion also cleared any newer input. Updating from current 
state preserves all confirmed additions without disturbing subsequent typing.
   
   Closes #1636
   
   ## Validation
   - npm test -- --run src/pages/studio/__tests__/Ops.test.tsx (6 passed)
   - npx eslint src/pages/studio/Ops.tsx src/pages/studio/__tests__/Ops.test.tsx
   - npm run build
   - git diff --check


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