fix: structuredClone template
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
This commit is contained in:
@@ -548,7 +548,7 @@ function ChatTemplateDropdownList() {
|
||||
<CommandItem
|
||||
key={index}
|
||||
value={t.name}
|
||||
onSelect={() => handleTemplateSelect(t)}
|
||||
onSelect={() => handleTemplateSelect(structuredClone(t))}
|
||||
>
|
||||
<div className="flex items-center justify-between w-full">
|
||||
<span>{t.name}</span>
|
||||
|
||||
@@ -69,7 +69,7 @@ export function TemplateAttributeDialog({
|
||||
(filteredStore as any)[typedKey] = chatStore[typedKey];
|
||||
}
|
||||
});
|
||||
onSave(templateName, filteredStore);
|
||||
onSave(templateName, structuredClone(filteredStore));
|
||||
};
|
||||
|
||||
const toggleAll = (checked: boolean) => {
|
||||
|
||||
Reference in New Issue
Block a user