we need also the id in the preparePromptsForExport method

This commit is contained in:
mic 2024-07-14 23:23:08 +02:00
parent 7c35a33a1c
commit 4d9329ae22

View file

@ -158,7 +158,7 @@ export function preparePromptsForExport(prompts){
output.forEach(prompt => {
if(prompt.is_default == 1){
Object.keys(prompt).forEach(key => {
if(!['enabled', 'position_compose', 'position_display'].includes(key)){
if(!['id', 'enabled', 'position_compose', 'position_display'].includes(key)){
delete prompt[key];
}
})