From b402a5f2ec85839dc3edfc2269c5b23a0fe06332 Mon Sep 17 00:00:00 2001 From: Joe Prosser Date: Thu, 12 Sep 2024 16:39:33 +0100 Subject: [PATCH] fix(cli): fix label trend selections --- CHANGELOG.md | 3 +++ cli/src/commands/get/custom_label_trend_report.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc31612..09d0f99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# Unreleased +- Fix selection index issue on custom label trend reports + # v0.33.0 - add custom label trend report - Add validation to dataset `--stats` diff --git a/cli/src/commands/get/custom_label_trend_report.rs b/cli/src/commands/get/custom_label_trend_report.rs index 32b8856..afa6521 100644 --- a/cli/src/commands/get/custom_label_trend_report.rs +++ b/cli/src/commands/get/custom_label_trend_report.rs @@ -99,6 +99,7 @@ pub fn pop_label_selection(prompt: &str, label_defs: &mut Vec) -> Resu Ok(label_inclusion_selections .iter() + .rev() .map(|selection| label_defs.remove(*selection).name) .collect()) }