Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Kusumgar committed Nov 6, 2024
1 parent 9b5c429 commit 3f9f497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/static/src/store/graphs/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getters: GraphsGetters & GetterTree<GraphsState, AppState> = {
let maxVariableLength = 0;
const variables = graphsGetters[GraphsGetter.allSelectedVariables];
for (let i = 0; i < variables.length; i++) {
maxVariableLength = Math.max(maxVariableLength, variables[i]);
maxVariableLength = Math.max(maxVariableLength, variables[i].length);
}
return maxVariableLength * LEGEND_WIDTH_PER_CHAR + LEGEND_LINE_PADDING;
}
Expand Down

0 comments on commit 3f9f497

Please sign in to comment.