Fix type bug.
rodzic
51be02dfd2
commit
52ddb05dd8
|
@ -269,7 +269,7 @@ const AttachmentIndicesWidget: React.FC<{
|
||||||
type: AttachmentPointType;
|
type: AttachmentPointType;
|
||||||
creature: CreatureSymbol;
|
creature: CreatureSymbol;
|
||||||
attachment: AttachedCreatureSymbol;
|
attachment: AttachedCreatureSymbol;
|
||||||
onChange: (attachments: AttachedCreatureSymbol) => void;
|
onChange: (attachment: AttachedCreatureSymbol) => void;
|
||||||
idPrefix: string;
|
idPrefix: string;
|
||||||
}> = (props) => {
|
}> = (props) => {
|
||||||
const id = `${props.idPrefix}_indices`;
|
const id = `${props.idPrefix}_indices`;
|
||||||
|
@ -389,9 +389,7 @@ function CreaturePartEditor<T extends CreatureSymbol>({
|
||||||
creature={creature}
|
creature={creature}
|
||||||
attachment={attach}
|
attachment={attach}
|
||||||
idPrefix={atIdPrefix}
|
idPrefix={atIdPrefix}
|
||||||
onChange={(attachments) =>
|
onChange={updateAttachment.bind(null, attach)}
|
||||||
onChange({ ...creature, ...attachments })
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
<div className="thingy">
|
<div className="thingy">
|
||||||
<button onClick={deleteAttachment.bind(null, attach)}>
|
<button onClick={deleteAttachment.bind(null, attach)}>
|
||||||
|
|
Ładowanie…
Reference in New Issue