Skip to content

Commit

Permalink
Merge pull request #1300 from Vizzuality/fix/front/MARXAN-1820-improv…
Browse files Browse the repository at this point in the history
…e-set-SPF

fix (front): set correct spf when edit all [MARXAN-1820]
  • Loading branch information
anamontiaga authored Dec 14, 2022
2 parents 32d9074 + 81d5156 commit 60e90e1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.20
14.21.1
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const ScenariosFeaturesTargets: React.FC<ScenariosFeaturesTargetsProps> =
const { selectedFeatures } = useSelector((state) => state[`/scenarios/${sid}/edit`]);

const editable = useCanEditScenario(pid, sid);

const selectedFeaturesMutation = useSaveSelectedFeatures({});
const saveScenarioMutation = useSaveScenario({
requestConfig: {
Expand Down Expand Up @@ -173,7 +174,7 @@ export const ScenariosFeaturesTargets: React.FC<ScenariosFeaturesTargetsProps> =
});
})
.map((s) => {
const { target, fpf = 1 } = features.find((f) => {
const { target, fpf } = features.find((f) => {
return f.parentId === featureId && f.value === s.value;
});

Expand Down Expand Up @@ -321,7 +322,9 @@ export const ScenariosFeaturesTargets: React.FC<ScenariosFeaturesTargetsProps> =
title={`Are you sure you want to change all feature targets to ${confirmationTarget?.v}?`}
description="The action cannot be reverted."
open={!!confirmationTarget}
onAccept={() => onChangeTargetAll(confirmationTarget)}
onAccept={() => {
onChangeTargetAll(confirmationTarget);
}}
onRefuse={() => setConfirmationTarget(null)}
onDismiss={() => setConfirmationTarget(null)}
/>
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"storybook:build": "yarn storybook:styles:prod && build-storybook -s ./public -c .storybook"
},
"engines": {
"node": "~14.20"
"node": "14.21.1"
},
"dependencies": {
"@artsy/fresnel": "^1.9.0",
Expand Down
4 changes: 4 additions & 0 deletions app/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance: textfield;
}


input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button,
Expand Down

0 comments on commit 60e90e1

Please sign in to comment.