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