Commit 487986ec authored by Chunchi Che's avatar Chunchi Che

fix small

parent 1c2896a6
Pipeline #28748 passed with stages
in 13 minutes and 11 seconds
...@@ -16,7 +16,7 @@ export default async (container: Container, updateData: MsgUpdateData) => { ...@@ -16,7 +16,7 @@ export default async (container: Container, updateData: MsgUpdateData) => {
.filter((card) => card.location.sequence === sequence) .filter((card) => card.location.sequence === sequence)
.at(0); .at(0);
if (target) { if (target) {
if (action.code > 0 && target.code === 0) { if (action?.code > 0 && target.code === 0) {
// 当本地code为0且action的code大于0时,才从db加载整个meta信息 // 当本地code为0且action的code大于0时,才从db加载整个meta信息
const newMeta = fetchCard(action.code); const newMeta = fetchCard(action.code);
target.code = action.code; target.code = action.code;
......
...@@ -108,8 +108,8 @@ export const PositionModal = () => { ...@@ -108,8 +108,8 @@ export const PositionModal = () => {
footer={<></>} footer={<></>}
> >
<div className={styles.container}> <div className={styles.container}>
{positions.map((position) => ( {positions.map((position, idx) => (
<Button onClick={() => onSummit(position)}> <Button key={idx} onClick={() => onSummit(position)}>
{cardPosition(position)} {cardPosition(position)}
</Button> </Button>
))} ))}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment