瀏覽代碼

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


部分文件因文件數量過多而無法顯示