Skip to content

Commit

Permalink
[hotfix] fix way of selecting telemerty whike using check_value
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMochizuki committed Aug 13, 2023
1 parent 66a654c commit 1e93971
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const PlanTabPanel = (props: PlanTabPanelProps) => {
try {
tlms = latestTelemetries[variableNameSplitList[0]][variableNameSplitList[1]];
} catch (e) {
tlmCmdConfigIndex = tlmCmdConfig.findIndex(index => index.compoName.includes(variableNameSplitList[0]));
tlmCmdConfigIndex = tlmCmdConfig.findIndex(index => (latestTelemetries[index.compoName] != undefined && latestTelemetries[index.compoName][variableNameSplitList[0]] != undefined));
if (tlmCmdConfigIndex != -1) {
tlms = latestTelemetries[tlmCmdConfig[tlmCmdConfigIndex].compoName][variableNameSplitList[0]];
} else {
Expand Down

0 comments on commit 1e93971

Please sign in to comment.