소스 검색

Restore selectedElements on undelete (#1242)

* Restore selectedElements on undelete

* Update regressionTest snapshots
Shriram Balaji 5 년 전
부모
커밋
290244660b
2개의 변경된 파일526개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/appState.ts
  2. 525 0
      src/tests/__snapshots__/regressionTests.test.tsx.snap

+ 1 - 0
src/appState.ts

@@ -66,6 +66,7 @@ export function clearAppStatePropertiesForHistory(
   appState: AppState,
 ): Partial<AppState> {
   return {
+    selectedElementIds: appState.selectedElementIds,
     exportBackground: appState.exportBackground,
     currentItemStrokeColor: appState.currentItemStrokeColor,
     currentItemBackgroundColor: appState.currentItemBackgroundColor,

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 525 - 0
src/tests/__snapshots__/regressionTests.test.tsx.snap


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.