Skip to content

Commit 1e9a84f

Browse files
committed
fix: view block should save its viewName
1 parent 88ab65b commit 1e9a84f

File tree

1 file changed

+11
-0
lines changed
  • packages/northstar/src/blocks/special

1 file changed

+11
-0
lines changed

packages/northstar/src/blocks/special/view.r.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ export class ViewBlock extends RectBlock implements SpecialBlock {
4343
return [];
4444
}
4545

46+
protected exportData(): any {
47+
return {
48+
...super.exportData(),
49+
viewName: this.viewName,
50+
};
51+
}
52+
protected importData(data: any, sockets: any): void {
53+
super.importData(data, sockets);
54+
this.viewName = data.viewName;
55+
}
56+
4657
toOutput(): ViewBlockOutput {
4758
return {
4859
type: "view",

0 commit comments

Comments
 (0)