فهرست منبع

fix resize hints not showing due to LayerUI bailing on updates (#1952)

David Luzar 4 سال پیش
والد
کامیت
c5d37a07c8
1فایلهای تغییر یافته به همراه1 افزوده شده و 10 حذف شده
  1. 1 10
      src/components/LayerUI.tsx

+ 1 - 10
src/components/LayerUI.tsx

@@ -547,16 +547,7 @@ const LayerUI = ({
 
 const areEqual = (prev: LayerUIProps, next: LayerUIProps) => {
   const getNecessaryObj = (appState: AppState): Partial<AppState> => {
-    const {
-      draggingElement,
-      resizingElement,
-      multiElement,
-      editingElement,
-      isResizing,
-      cursorX,
-      cursorY,
-      ...ret
-    } = appState;
+    const { cursorX, cursorY, ...ret } = appState;
     return ret;
   };
   const prevAppState = getNecessaryObj(prev.appState);