diff --git a/src/component/sugar/array.ts b/src/component/sugar/array.ts index 50cae2f..189e91c 100644 --- a/src/component/sugar/array.ts +++ b/src/component/sugar/array.ts @@ -100,7 +100,7 @@ export function useArray( sugar.template = template; const keys = template.map(v => { const id = newId(); - getManagedSugar(id, options.template).asMounted(s => s.setTemplate(v, mode)); + getManagedSugar(id, mode === 'merge' ? { ...options.template, ...v } : v); return id; }); setKeys(keys);