Action trigger close modal before open

What I am trying to do: I want make email template configuration so inside each template got 3 actions which is Preview, Send Test and Publish. 1. Preview will render the html directly via action modal content, 2. Send Test will execute an action to send the email with the current template that user editing with 3. publish action that save the template to the database What I did: I've made the actions succefully like what i want it able to preview, send the test email and save the template, I render the action by looping and given unique name to identify the action for which template My issue/the error: the actions only work for the first loop the second and etc wont work or even not execute the process code
No description
9 Replies
pemudakoding
pemudakodingOP11mo ago
My code
No description
pemudakoding
pemudakodingOP11mo ago
this is how i render the actions dynamically
No description
pemudakoding
pemudakodingOP11mo ago
the first component, able to execute the actions well
No description
No description
pemudakoding
pemudakodingOP11mo ago
the second action just loading and done nothing happen like the first action above like nothing modal open or process execute
No description
No description
pemudakoding
pemudakodingOP11mo ago
i saw it trigger close modal instead of open modal
No description
pemudakoding
pemudakodingOP11mo ago
this is when i hit the action at first component
No description
pemudakoding
pemudakodingOP11mo ago
why it trigger close modal ya? before opened it
pemudakoding
pemudakodingOP11mo ago
my mate forget this need to be dynamic as well omaygadd
No description
pemudakoding
pemudakodingOP11mo ago
this is solved thank youu
Want results from more Discord servers?
Add your server