Skip to content

Commit f4aa9da

Browse files
committedMar 23, 2025
AddToInstrumentHistory action fixes
1 parent c0b2d43 commit f4aa9da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎packages/project-editor/flow/components/actions/instrument.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ export class AddToInstrumentHistoryActionComponent extends ActionComponent {
16331633
return;
16341634
}
16351635

1636-
const message: any = {
1636+
message = {
16371637
state: "success",
16381638
fileType: { mime: "application/eez-raw" },
16391639
description: chartDescription,
@@ -1661,11 +1661,10 @@ export class AddToInstrumentHistoryActionComponent extends ActionComponent {
16611661
}
16621662
},
16631663
horizontalScale: chartHorizontalScale,
1664-
verticalScale: chartVerticalScale
1664+
verticalScale: chartVerticalScale,
1665+
dataLength: chartData.length
16651666
};
16661667

1667-
message.dataLength = chartData.length;
1668-
16691668
historyItemType = "instrument/file-download";
16701669
} else if (
16711670
itemType ==

0 commit comments

Comments
 (0)
Failed to load comments.