fix: hide effect icon if it's not present, instead of showing alt text and a broken image icon
This commit is contained in:
parent
c64adb0225
commit
20160ea9a0
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,6 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options, DS4ActorSheetD
|
|||
const enrichedEffectPromises = this.actor.effects.map(async (effect) => {
|
||||
return {
|
||||
...effect.toObject(),
|
||||
icon: effect.data.icon ?? DS4ActiveEffect.FALLBACK_ICON,
|
||||
sourceName: await effect.getCurrentSourceName(),
|
||||
factor: effect.factor,
|
||||
isEffectivelyEnabled: !effect.data.disabled && !effect.isSurpressed,
|
||||
|
@ -418,7 +417,6 @@ interface DS4ActorSheetData extends ActorSheet.Data {
|
|||
type ActiveEffectDataSource = foundry.data.ActiveEffectData["_source"];
|
||||
|
||||
interface EnrichedActiveEffectDataSource extends ActiveEffectDataSource {
|
||||
icon: string;
|
||||
sourceName: string;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue