Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(sheet): merge no refresh (#843)

Univereab583a8274a
diff --git a/packages/sheets/src/basics/const/command-listener-const.ts b/packages/sheets/src/basics/const/command-listener-const.ts
index aa4fabffa4..92ceb38234 100644
--- a/packages/sheets/src/basics/const/command-listener-const.ts
+++ b/packages/sheets/src/basics/const/command-listener-const.ts
@@ -14,12 +14,14 @@
* limitations under the License.
*/
+import { AddWorksheetMergeMutation } from '../../commands/mutations/add-worksheet-merge.mutation';
import { DeleteRangeMutation } from '../../commands/mutations/delete-range.mutation';
import { InsertRangeMutation } from '../../commands/mutations/insert-range.mutation';
import { InsertColMutation, InsertRowMutation } from '../../commands/mutations/insert-row-col.mutation';
import { MoveRangeMutation } from '../../commands/mutations/move-range.mutation';
import { MoveColsMutation, MoveRowsMutation } from '../../commands/mutations/move-rows-cols.mutation';
import { RemoveColMutation, RemoveRowMutation } from '../../commands/mutations/remove-row-col.mutation';
+import { RemoveWorksheetMergeMutation } from '../../commands/mutations/remove-worksheet-merge.mutation';
import { SetColHiddenMutation, SetColVisibleMutation } from '../../commands/mutations/set-col-visible.mutation';
import { SetRangeValuesMutation } from '../../commands/mutations/set-range-values.mutation';
import { SetRowHiddenMutation, SetRowVisibleMutation } from '../../commands/mutations/set-row-visible.mutation';
@@ -51,4 +53,9 @@ export const COMMAND_LISTENER_SKELETON_CHANGE = [
RemoveRowMutation.id,
];
-export const COMMAND_LISTENER_VALUE_CHANGE = [SetRangeValuesMutation.id, MoveRangeMutation.id];
+export const COMMAND_LISTENER_VALUE_CHANGE = [
+ SetRangeValuesMutation.id,
+ MoveRangeMutation.id,
+ RemoveWorksheetMergeMutation.id,
+ AddWorksheetMergeMutation.id,
+];