From bddfd5763b6298bb15d40d25af1fec6d27ee8337 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 1 May 2024 12:49:53 +0300 Subject: [PATCH] Fix persona filter rule --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index 2df192296..ee9d9718a 100644 --- a/public/script.js +++ b/public/script.js @@ -6010,8 +6010,8 @@ function sortPersonas(personas) { const option = $('#persona_sort_order').find(':selected'); if (option.attr('value') === 'search') { personas.sort((a, b) => { - const aScore = personasFilter.getScore(FILTER_TYPES.WORLD_INFO_SEARCH, a); - const bScore = personasFilter.getScore(FILTER_TYPES.WORLD_INFO_SEARCH, b); + const aScore = personasFilter.getScore(FILTER_TYPES.PERSONA_SEARCH, a); + const bScore = personasFilter.getScore(FILTER_TYPES.PERSONA_SEARCH, b); return (aScore - bScore); }); } else {