Skip to content

Commit 62e21d3

Browse files
committed
fix: handleEditEventV2 should respect squash and title
1 parent a0e47b7 commit 62e21d3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

oscd-shell.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ export class OpenSCD extends LitElement {
394394

395395
this.addEventListener('oscd-open', event => this.handleOpenDoc(event));
396396
this.addEventListener('oscd-edit-v2', (event: EditEventV2) => {
397-
this.xmlEditor.commit(event.detail.edit);
397+
const { edit, title, squash } = event.detail;
398+
this.xmlEditor.commit(edit, { title, squash });
398399
});
399400

400401
// Catch all edits (from commits AND events) and trigger an update

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"start:bundle": "npm run bundle && concurrently -k -r \"rollup -c rollup.config.js --watch\" \"wds --watch\"",
4444
"test": "npm run build && playwright install && wtr --coverage",
4545
"test:unit": "npm run build && playwright install && wtr --coverage --group default",
46-
"test:visual": "npm run build && playwright install && wtr --group visual",
4746
"test:watch": "npm run build && concurrently -k -r \"tsc -b --watch --preserveWatchOutput\" \"wtr --watch --coverage\"",
4847
"test:unit:watch": "npm run build && concurrently -k -r \"tsc -b --watch --preserveWatchOutput\" \"wtr --watch --coverage --group default\"",
48+
"test:visual": "npm run build && playwright install && wtr --group visual",
4949
"test:update": "npm run build && wtr --group visual --update-visual-baseline",
5050
"analyze": "cem analyze --litelement",
5151
"doc": "npm run analyze -- --exclude dist && typedoc --out dist/doc oscd-shell.ts foundation.ts",

0 commit comments

Comments
 (0)