Change handleOptionalSelect name

4d483e7814e99c405d3efbab10d23239602ab5d1

Crow <bismuthglass@protonmail.com>

1 files changed, +7 -7Showing whitespace changes
public/scripts/world-info.js+7 -7
@@ -3358,7 +3358,7 @@ export async function getWorldEntry(name, data, entry) {
3358 });3358 });
3359 useGroupScoringSelect.val((entry.useGroupScoring === null || entry.useGroupScoring === undefined) ? 'null' : entry.useGroupScoring ? 'true' : 'false').trigger('input');3359 useGroupScoringSelect.val((entry.useGroupScoring === null || entry.useGroupScoring === undefined) ? 'null' : entry.useGroupScoring ? 'true' : 'false').trigger('input');
33603360
3361 function handleOptionalSelect(fieldName) {3361 function handleMatchCheckbox(fieldName) {
3362 const key = originalWIDataKeyMap[fieldName];3362 const key = originalWIDataKeyMap[fieldName];
3363 const checkBoxElem = template.find(`input[type="checkbox"][name="${fieldName}"]`);3363 const checkBoxElem = template.find(`input[type="checkbox"][name="${fieldName}"]`);
3364 checkBoxElem.data('uid', entry.uid);3364 checkBoxElem.data('uid', entry.uid);
@@ -3373,12 +3373,12 @@ export async function getWorldEntry(name, data, entry) {
3373 checkBoxElem.prop('checked', !!entry[fieldName]).trigger('input');3373 checkBoxElem.prop('checked', !!entry[fieldName]).trigger('input');
3374 }3374 }
33753375
3376 handleOptionalSelect('matchPersonaDescription');3376 handleMatchCheckbox('matchPersonaDescription');
3377 handleOptionalSelect('matchCharacterDescription');3377 handleMatchCheckbox('matchCharacterDescription');
3378 handleOptionalSelect('matchCharacterPersonality');3378 handleMatchCheckbox('matchCharacterPersonality');
3379 handleOptionalSelect('matchCharacterDepthPrompt');3379 handleMatchCheckbox('matchCharacterDepthPrompt');
3380 handleOptionalSelect('matchScenario');3380 handleMatchCheckbox('matchScenario');
3381 handleOptionalSelect('matchCreatorNotes');3381 handleMatchCheckbox('matchCreatorNotes');
33823382
3383 // automation id3383 // automation id
3384 const automationIdInput = template.find('input[name="automationId"]');3384 const automationIdInput = template.find('input[name="automationId"]');