Commit b33ff7f5 authored by chechunchi's avatar chechunchi

fix small

parent 0a6f32ea
Pipeline #19460 passed with stages
in 4 minutes and 30 seconds
...@@ -7,7 +7,7 @@ import { ...@@ -7,7 +7,7 @@ import {
import { useAppSelector } from "../../hook"; import { useAppSelector } from "../../hook";
import SingleSlot from "./singleSlot"; import SingleSlot from "./singleSlot";
const depth = 0.02; const depth = 0.005;
const Cemeteries = () => { const Cemeteries = () => {
const meCemetery = useAppSelector(selectMeCemetery).inner; const meCemetery = useAppSelector(selectMeCemetery).inner;
......
...@@ -4,7 +4,7 @@ import { useAppSelector } from "../../hook"; ...@@ -4,7 +4,7 @@ import { useAppSelector } from "../../hook";
import { selectMeDeck, selectOpDeck } from "../../reducers/duel/deckSlice"; import { selectMeDeck, selectOpDeck } from "../../reducers/duel/deckSlice";
import SingleSlot from "./singleSlot"; import SingleSlot from "./singleSlot";
const depth = 0.02; const depth = 0.005;
const Deck = () => ( const Deck = () => (
<> <>
......
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
} from "../../reducers/duel/mod"; } from "../../reducers/duel/mod";
const shape = CONFIG.SingleSlotShape; const shape = CONFIG.SingleSlotShape;
const depth = 0.02; const depth = 0.005;
const SingleSlot = (props: { const SingleSlot = (props: {
state: CardState[]; state: CardState[];
...@@ -25,13 +25,17 @@ const SingleSlot = (props: { ...@@ -25,13 +25,17 @@ const SingleSlot = (props: {
if (props.state.length != 0) { if (props.state.length != 0) {
dispatch( dispatch(
setCardListModalInfo( setCardListModalInfo(
props.state.map((item) => { props.state
return { .filter(
name: item.occupant?.text.name, (item) => item.occupant !== undefined && item.occupant.id !== 0
desc: item.occupant?.text.desc, )
imgUrl: `https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${item.occupant?.id}.jpg`, .map((item) => {
}; return {
}) name: item.occupant?.text.name,
desc: item.occupant?.text.desc,
imgUrl: `https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${item.occupant?.id}.jpg`,
};
})
) )
); );
dispatch(setCardListModalIsOpen(true)); dispatch(setCardListModalIsOpen(true));
......
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