1
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { ROLE_TEMPLATE_CHARACTERS } from '../data/characterPresets';
|
||||
import type {
|
||||
CustomWorldCoverProfile,
|
||||
CustomWorldPlayableNpc,
|
||||
@@ -43,15 +42,7 @@ function resolvePlayableCoverImageSrc(role: CustomWorldPlayableNpc) {
|
||||
return explicitImageSrc;
|
||||
}
|
||||
|
||||
if (!role.templateCharacterId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
ROLE_TEMPLATE_CHARACTERS.find(
|
||||
(character) => character.id === role.templateCharacterId,
|
||||
)?.portrait ?? null
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
||||
function normalizeCoverCharacterRoleIds(
|
||||
|
||||
Reference in New Issue
Block a user