we need also the id in the preparePromptsForExport method
This commit is contained in:
parent
7c35a33a1c
commit
4d9329ae22
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ export function preparePromptsForExport(prompts){
|
||||||
output.forEach(prompt => {
|
output.forEach(prompt => {
|
||||||
if(prompt.is_default == 1){
|
if(prompt.is_default == 1){
|
||||||
Object.keys(prompt).forEach(key => {
|
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];
|
delete prompt[key];
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue