You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to change the template depending if its a image or video but it doesnt seem to work, it just uses the template provided when calling the function
@kiwo12345@emreond
The best way I could see to do this is to possibly use the mock and success options.
Set mock to true, and then create your own logic as a function for success.
What mock does which is explained in the docs is it doesn't update the DOM but passes the request response to the success function of your creation.
I am trying to change the template depending if its a image or video but it doesnt seem to work, it just uses the template provided when calling the function
The text was updated successfully, but these errors were encountered: