Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/undpindia/dicra
Browse files Browse the repository at this point in the history
  • Loading branch information
Maneesh7012 committed Sep 16, 2023
2 parents 4c7234d + f873b21 commit 463a2dc
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,26 +158,26 @@ class LayerDetails extends Component {
this.getLayerdetails();
}

// componentDidUpdate(prevProps) {
// if (
// prevProps.LayerDescription !== this.props.LayerDescription ||
// prevProps.DownloadLayer !== this.props.DownloadLayer ||
// prevProps.SelecterCategory !== this.props.SelecterCategory ||
// prevProps.SelecterCategoryId !== this.props.SelecterCategoryId
// ) {
// this.setState({
// layerDesc: this.props.LayerDescription.long_description,
// layersource: this.props.LayerDescription.source,
// currentselect: this.props.DownloadLayer,
// selecterCategory: this.props.SelecterCategory,
// DownloadLayer: this.props.DownloadLayer,
// selectCategory_id: this.props.SelecterCategoryId || 1,
// });
componentDidUpdate(prevProps) {
if (
prevProps.LayerDescription !== this.props.LayerDescription ||
// prevProps.DownloadLayer !== this.props.DownloadLayer ||
prevProps.SelecterCategory !== this.props.SelecterCategory ||
prevProps.SelecterCategoryId !== this.props.SelecterCategoryId
) {
this.setState({
layerDesc: this.props.LayerDescription.long_description,
layersource: this.props.LayerDescription.source,
currentselect: this.props.DownloadLayer,
selecterCategory: this.props.SelecterCategory,
DownloadLayer: this.props.DownloadLayer,
selectCategory_id: this.props.SelecterCategoryId || 1,
});

// this.getavailableFiles(this.props.LayerDescription.id);
// this.getLayerdetails();
// }
// }
this.getavailableFiles(this.props.LayerDescription.id);
this.getLayerdetails();
}
}

render() {
return (
Expand Down
Loading

0 comments on commit 463a2dc

Please sign in to comment.