Fix type error in createLazyFields

b9efb12d4ddf40ce5dc534fa91104b03a94dbdc8

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Ignore whitespace
public/script.js+2 -2
@@ -3236,7 +3236,7 @@ export function baseChatReplace(value, name1Override = null, name2Override = nul
32363236
3237/**3237/**
3238 * Helper to create an object with lazy, memoized getters from a map of field resolvers.3238 * Helper to create an object with lazy, memoized getters from a map of field resolvers.
3239 * @param {Record<string, () => string>} resolvers Map of field names to resolver functions3239 * @param {Record<string, () => string|string[]>} resolvers Map of field names to resolver functions
3240 * @returns {CharacterCardFields} Object with lazy getters3240 * @returns {CharacterCardFields} Object with lazy getters
3241 */3241 */
3242export function createLazyFields(resolvers) {3242export function createLazyFields(resolvers) {
@@ -3274,7 +3274,7 @@ export function getCharacterCardFieldsLazy({ chid = undefined } = {}) {
3274 const useGroupCards = selected_group && character;3274 const useGroupCards = selected_group && character;
3275 const groupCardsLazy = useGroupCards ? getGroupCharacterCardsLazy(selected_group, Number(currentChid)) : null;3275 const groupCardsLazy = useGroupCards ? getGroupCharacterCardsLazy(selected_group, Number(currentChid)) : null;
32763276
3277 /** @type {Record<string, () => string>} */3277 /** @type {Record<string, () => string|string[]>} */
3278 const resolvers = {3278 const resolvers = {
3279 persona: () => baseChatReplace(power_user.persona_description?.trim()),3279 persona: () => baseChatReplace(power_user.persona_description?.trim()),
3280 system: () => {3280 system: () => {