mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
dropping already installed from plans in the ui
This commit is contained in:
parent
f55e10cd69
commit
ee5e9bfe12
1 changed files with 4 additions and 1 deletions
|
|
@ -172,7 +172,10 @@ export async function getRecommendations(
|
|||
}
|
||||
|
||||
// unnest the recommendations
|
||||
const recommendations = data.map((item) => item.recommendation);
|
||||
// We drop measures that are already installed
|
||||
const recommendations = data
|
||||
.map((item) => item.recommendation)
|
||||
.filter((rec) => !rec.alreadyInstalled);
|
||||
|
||||
return recommendations;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue