Skip to content

Commit

Permalink
Fix showing derived column values on the inventory list page (#4364)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelstudios authored Oct 26, 2023
1 parent 1e6dcc7 commit 13ec52f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ angular.module('BE.seed.controller.inventory_list', []).controller('inventory_li
// finally, update the data to include the calculated values
$scope.data.forEach((row) => {
Object.entries(aggregated_results).forEach(([derived_column_id, results]) => {
const derived_column = attached_derived_columns.find((col) => col.id === derived_column_id);
const derived_column = attached_derived_columns.find((col) => col.id === Number(derived_column_id));
const result = results.find((res) => res.id === row.id) || {};
row[column_name_lookup[derived_column.name]] = result.value;
});
Expand Down

0 comments on commit 13ec52f

Please sign in to comment.