Fix typing.
rodzic
450c930241
commit
51be02dfd2
|
@ -317,13 +317,10 @@ function CreaturePartEditor<T extends CreatureSymbol>({
|
|||
};
|
||||
const updateAttachment = (
|
||||
originalAttachment: AttachedCreatureSymbol,
|
||||
attachUpdates: CreatureSymbol
|
||||
updatedAttachment: AttachedCreatureSymbol
|
||||
) => {
|
||||
const attachments = creature.attachments.slice();
|
||||
attachments[getAttachmentIndex(originalAttachment)] = {
|
||||
...originalAttachment,
|
||||
...attachUpdates,
|
||||
};
|
||||
attachments[getAttachmentIndex(originalAttachment)] = updatedAttachment;
|
||||
onChange({
|
||||
...creature,
|
||||
attachments,
|
||||
|
|
Ładowanie…
Reference in New Issue