Skip to content

Commit

Permalink
Fix issue when passing Boolean props false in DynamicDataTable
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminCharmes authored and ml-evs committed Nov 15, 2024
1 parent 1c23cbf commit 74d3674
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/components/DynamicDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ export default {
const props = Object.entries(config).reduce((acc, [prop, setting]) => {
if (typeof setting === "object" && setting !== null && "value" in setting) {
acc[prop] = setting.value;
} else if (typeof setting === "boolean") {
acc[prop] = setting;
} else if (typeof setting === "string") {
if (prop === "itemType") {
acc[prop] = data.type !== undefined ? data.type : "starting_materials";
Expand Down

0 comments on commit 74d3674

Please sign in to comment.