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
If you create an empty template and don't click on the editor at all two templates will be created instead of one.
Steps to reproduce:
Create a template from the context menu
Give it a name
Click save
It's very important that you don't click the editor at all, or you will be redirected to the edit page URL, and the bug won't occur.
Additional information
I have a feeling that there is an event that triggers when you click the editor, which also triggers when you click the save button, causing two save actions to start, but this is just a hunch, and the front end code is a foreign place for me, and I dare not venture too far into it 😅
The text was updated successfully, but these errors were encountered:
nikolajlauridsen
changed the title
Creating an empty template causes a duplicate to get created.
Creating an empty template causes a duplicate template to get created.
Oct 7, 2020
I think it happens when the title field loses focus (so when you click the save button), at least that's what I've seen happening before, so it could be that you are able to repro by just giving it a title and then clicking in the code editor. Not sure, but I recall something like that.
Ah so that's when it happens, but I think we can close the issue again, this morning I could not reproduce manually, only with cypress tests, so I'm not quite sure what's going on.
But just to clarify, yesterday it would only happen if you clicked the save button directly after entering the name if you clicked anywhere else, and then save button, only one template would be created, it would however still perform the save action twice, once when clicking away from the name field, and once when you clicked the save button, but the save action when clicking the button would just update the existing template as intended.
If you create an empty template and don't click on the editor at all two templates will be created instead of one.
Steps to reproduce:
It's very important that you don't click the editor at all, or you will be redirected to the edit page URL, and the bug won't occur.
Additional information
I have a feeling that there is an event that triggers when you click the editor, which also triggers when you click the save button, causing two save actions to start, but this is just a hunch, and the front end code is a foreign place for me, and I dare not venture too far into it 😅
The text was updated successfully, but these errors were encountered: