* refactor.

This commit is contained in:
dingyongliang
2024-02-19 14:35:37 +08:00
parent a68df68088
commit b153db7874
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -30,3 +30,4 @@
.text-muted {flex-shrink: 1;}
textarea.field-type {height: 32px;}
+2 -1
View File
@@ -468,7 +468,8 @@ function updatePromptPreview()
for(let i = 0; i < matches.length; i++)
{
const result = regex.exec(innerHTML)[1];
const execArr = regex.exec(innerHTML);
const result = execArr[1];
const fieldIndex = words.get(result);
const fieldValue = $(`.field-content [data-id="${fieldIndex}"] .field-type`).prop('value');
if(!fieldValue) continue;