Skip to content

Commit 91b821d

Browse files
resolve code review
1 parent b3b3b6d commit 91b821d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/contestEditor/configPanel/problemList.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ const ProblemItem: FC<{
5959
const { listeners, setNodeRef, transform, transition, isDragging } =
6060
useSortable({
6161
id: problem.key,
62-
animateLayoutChanges: (args) => (
63-
console.debug(structuredClone(args)),
64-
!args.wasDragging
65-
),
62+
animateLayoutChanges: (args) => !args.wasDragging,
6663
});
6764
const dragBarStyle = {
6865
transform: CSS.Transform.toString(transform),
@@ -316,7 +313,7 @@ const Remeasure: FC<{ items: unknown[] }> = ({ items }) => {
316313
...contextRef.current.droppableContainers.keys(),
317314
]);
318315
}, [items]);
319-
return undefined;
316+
return null;
320317
};
321318

322319
const ProblemList: FC<{
@@ -339,7 +336,6 @@ const ProblemList: FC<{
339336
setPanel,
340337
updateContestData,
341338
);
342-
console.debug(contestData.problems.map((x) => x.key));
343339
return (
344340
<div className="contest-editor-config-label contest-editor-config-problem">
345341
<div>题目信息</div>

0 commit comments

Comments
 (0)