Next Tab Becomes Blank After Action in Frappe Doctype

I am encountering an issue in Frappe with a custom Doctype. After performing an action (e.g., clicking the “Fetch Inventory” button), the next tab within the form interface becomes blank. The other sections remain unaffected, but the specific tab does not render any content after the action is executed.

I have attached a screen recording for better understanding of the issue. Here are the steps to reproduce the issue:

  1. Open the custom Doctype.
  2. Perform the action (e.g., clicking “Fetch Inventory”).
  3. Navigate to the next tab.

Preview link :
https://i.imgur.com/3oI31v4.gif