mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
unlink store template from props.template
This commit is contained in:
parent
6f9e7fe7e9
commit
7f26dd233b
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ export const createFormStore = (storeName, formType) => {
|
|||
function setTemplate(template) {
|
||||
if (!_isFormTypeAllowed(["advanced", "easy", "raw"])) return;
|
||||
|
||||
template.value = template;
|
||||
const copyTemplate = JSON.parse(JSON.stringify(template));
|
||||
template.value = copyTemplate;
|
||||
templateBase.value = template;
|
||||
templateUI.value = template;
|
||||
templateUIFormat.value = template;
|
||||
|
|
|
|||
Loading…
Reference in a new issue