Skip to content

Fix XCom edit modal value not repopulating on reopen.#62798

Open
Arbaaz123676 wants to merge 1 commit intoapache:mainfrom
Arbaaz123676:fix/xcom-edit-modal-value-not-populating
Open

Fix XCom edit modal value not repopulating on reopen.#62798
Arbaaz123676 wants to merge 1 commit intoapache:mainfrom
Arbaaz123676:fix/xcom-edit-modal-value-not-populating

Conversation

@Arbaaz123676
Copy link

@Arbaaz123676 Arbaaz123676 commented Mar 3, 2026

Summary

This PR fixes an issue where the XCom value was not displayed when reopening the edit modal after updating it.

Root Cause

The modal lifecycle and query behavior caused stale or skipped state updates when reopening the modal, leading to an empty value field.

Changes

  • Removed lazyMount from the dialog to ensure proper unmount/remount behavior.
  • Enabled refetch on mount for the XCom entry query.
  • Adjusted the population effect to rely on data instead of data?.value !== undefined.
  • Ensured query invalidation for both GetXcomEntries and GetXcomEntry after update.

Result

The XCom edit modal now consistently repopulates the latest value when reopened.

Fixes #61486

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XCom value is not populating on edit operation

1 participant