Skip to content

Commit a98ad18

Browse files
committed
fix null in download
1 parent 9b18f44 commit a98ad18

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,7 @@ export class RPAWorkflowsCtrl extends entitiesCtrl<Base> {
14191419
null, 2);
14201420
if (workflows.length > 0) {
14211421
model = workflows[0];
1422+
if (NoderedUtil.IsNullEmpty(model.Xaml)) model.Xaml = "";
14221423
this.download(model.Xaml, model.name + ".xaml", "application/xaml+xml");
14231424
}
14241425
}
@@ -4198,6 +4199,7 @@ export class HistoryCtrl extends entitiesCtrl<Base> {
41984199
}
41994200
if (asXAML == true) {
42004201
var xaml = model.item.Xaml;
4202+
if (NoderedUtil.IsNullEmpty(xaml)) xaml = "";
42014203
this.download(model.item.Filename, xaml);
42024204
} else {
42034205
this.download(this.id + ".json", JSON.stringify(model.item, null, 2));

0 commit comments

Comments
 (0)