Skip to content

Commit

Permalink
patch: save analysis results (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinashechiraya authored Jan 27, 2025
1 parent 858395d commit e1afbea
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ export default function Analysis({ landscapes, layers, onLayerChecked, onLayerUn
const savedAnalysisFlag = useSelector(
(state: RootState) => state.userAnalysis.savedAnalysisFlag
);
const analysis = useSelector((state: RootState) => state.analysis);


const handleSaveAnalysis = () => {
if (data) {
dispatch(saveAnalysis(data))
if (data && analysis) {
dispatch(saveAnalysis(analysis))
}
};

Expand Down

0 comments on commit e1afbea

Please sign in to comment.