123123213weqw opened a new pull request, #2020:
URL: https://github.com/apache/rocketmq-dashboard/pull/2020

   ## What is the purpose of the change
   
   Fix #2017.
   
   When the runtime data-mode toggle is set to Mock, the Studio home page still 
requested GET /api/llm/config during mount. A local backend without a valid 
authenticated session responded with 401, the global Axios interceptor 
redirected to '/' and the page reloaded into the same request, producing a 
visible reload loop.
   
   ## Brief changelog
   
   - HomePage: skip the LLM config fetch in Mock mode and render the default 
model list directly
   - added a regression test asserting getLlmConfig is not called in Mock mode
   
   ## How was this patch verified
   
   - npx vitest run src/pages/home/__tests__/HomePage.test.tsx (3 passed)
   - npx tsc -b clean
   - npx eslint . clean
   


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