Skip to content

Commit 978a457

Browse files
core: frontend: components: ParamSets: Fix parameter file name comparison
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent f3f6681 commit 978a457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/frontend/src/components/vehiclesetup/overview/ParamSets.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ export default Vue.extend({
124124
for (const string of [fw_patch, fw_minor, fw_major]) {
125125
fw_params = Object.fromEntries(
126126
Object.entries(this.all_param_sets).filter(
127-
([name]) => name.toLocaleLowerCase().includes(string.toLowerCase()),
127+
// We add a trailing slash to avoid matching Navigator and Navigator64, or any board with suffix
128+
([name]) => name.toLocaleLowerCase().includes(string.toLowerCase() + "/"),
128129
),
129130
)
130131
if (Object.keys(fw_params).length > 0) {

0 commit comments

Comments
 (0)