pull/230/head
Atul Varma 2021-09-28 11:04:27 -04:00
rodzic 51be02dfd2
commit 52ddb05dd8
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -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)}>