Copilot commented on code in PR #14215:
URL: https://github.com/apache/cloudstack/pull/14215#discussion_r4065374993


##########
ui/src/views/compute/wizard/OwnershipSelection.vue:
##########
@@ -143,6 +143,7 @@ export default {
       selectedAccountType: this.$store.getters.project?.id ? 'Project' : 
'Account',
       selectedDomain: null,
       selectedAccount: null,
+      selectedAccountId: null,

Review Comment:
   `selectedAccountId` survives domain/type changes until the asynchronous 
account fetch completes (and also survives a failed fetch). Because the parent 
form does not receive the child’s loading state, submitting during that window 
can send the previously selected account UUID while the UI is showing a 
different domain/owner type. Clear this ID whenever account selection is 
invalidated, and prevent submission until the refresh completes.



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