Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Nov 2, 2021
1 parent 48f24b2 commit 7b0d95b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/components/manage/Blocks/PollutantIndex/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,16 @@ const View = ({ providers_data, query, setQuery, ...props }) => {
const pollutantsOptions = React.useMemo(() => {
const { index_pollutants } = providers_data;
return (
index_pollutants?.pollutantId?.map((_, index) => ({
key: index_pollutants.code[index],
value: index_pollutants.pollutantId[index],
text: index_pollutants.name[index],
})) || []
index_pollutants?.pollutantId
?.map((_, index) => ({
key: index_pollutants.code[index],
value: index_pollutants.pollutantId[index],
text: index_pollutants.name[index],
}))
?.filter((opt) => opt.value !== null) || []
);
}, [providers_data]);
console.log('HERE', pollutantsOptions);

return (
<div className="index-pollutants">
Expand Down
2 changes: 1 addition & 1 deletion src/components/theme/AppExtras/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default (config) => {
config.settings.appExtras = [
...(config.settings.appExtras || []),
{
match: '/**/edit',
match: ['/edit', '/**/edit'],
component: CopyPaste,
},
];
Expand Down

0 comments on commit 7b0d95b

Please sign in to comment.