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) => {
.filter((card) => card.location.sequence === sequence)
.at(0);
if (target) {
if (action.code > 0 && target.code === 0) {
if (action?.code > 0 && target.code === 0) {
// 当本地code为0且action的code大于0时,才从db加载整个meta信息
const newMeta = fetchCard(action.code);
target.code = action.code;
......
......@@ -108,8 +108,8 @@ export const PositionModal = () => {
footer={<></>}
>
<div className={styles.container}>
{positions.map((position) => (
<Button onClick={() => onSummit(position)}>
{positions.map((position, idx) => (
<Button key={idx} onClick={() => onSummit(position)}>
{cardPosition(position)}
</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