From 6b194c8a39d457beebb205e91a181397ae4d9521 Mon Sep 17 00:00:00 2001 From: gemini2035 <2530056984@qq.com> Date: Sat, 27 Jul 2024 22:31:22 +0800 Subject: [PATCH] perf: code about sheet refactor --- .../editor/operator/sheet/sheetGroup/SheetOperatorEditor.tsx | 1 - .../sheet/sheetOperator/SheetOperatorFilterProvider.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/editor/operator/sheet/sheetGroup/SheetOperatorEditor.tsx b/src/components/editor/operator/sheet/sheetGroup/SheetOperatorEditor.tsx index b725804..9d7f191 100644 --- a/src/components/editor/operator/sheet/sheetGroup/SheetOperatorEditor.tsx +++ b/src/components/editor/operator/sheet/sheetGroup/SheetOperatorEditor.tsx @@ -137,7 +137,6 @@ const SheetOperatorEditorForm: FC = ({ } }) - console.log(newOpers) submitGroupInSheet({ ...existedGroups.find(({ name: existedName }) => existedName === name)!, opers: newOpers, diff --git a/src/components/editor/operator/sheet/sheetOperator/SheetOperatorFilterProvider.tsx b/src/components/editor/operator/sheet/sheetOperator/SheetOperatorFilterProvider.tsx index 789a287..f36740e 100644 --- a/src/components/editor/operator/sheet/sheetOperator/SheetOperatorFilterProvider.tsx +++ b/src/components/editor/operator/sheet/sheetOperator/SheetOperatorFilterProvider.tsx @@ -132,7 +132,7 @@ const useOperatorFiltered = ( paginationFilter, rarityFilterResult, ) - // console.log(filterResult) + return { // return data after being paginated data: filterResult,