Skip to content

Commit

Permalink
show a max of 4 charts in intervention node (#5613)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnyama authored Nov 22, 2024
1 parent 7280853 commit 17be54f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ const modelInput = props.node.inputs.find((input) => input.type === 'modelId');
const isModelInputConnected = computed(() => modelInput?.status === WorkflowPortStatus.CONNECTED);
const groupedOutputParameters = computed(() =>
groupBy(flattenInterventionData(props.node.state.interventionPolicy.interventions), 'appliedTo')
Object.fromEntries(
Object.entries(
groupBy(flattenInterventionData(props.node.state.interventionPolicy.interventions), 'appliedTo')
).slice(0, 4) // Show a max of 4 charts
)
);
const preparedCharts = computed(() =>
Expand Down

0 comments on commit 17be54f

Please sign in to comment.