mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 09:51:18 -06:00
Fix prepare window display moment
This commit is contained in:
@@ -81,10 +81,9 @@ class PrepareUploadedData extends Component {
|
||||
DataManager.subscribe('Modules.DataLoader.TransferFunctionPresetsJSON', this.handleTfPresetsJSON);
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
componentDidUpdate(prevProps) {
|
||||
const { selectedFilePaths } = this.props;
|
||||
// const hasFilePaths = selectedFilePaths.length > 0 && selectedFilePaths[0] !== '';
|
||||
const hasFilePaths = selectedFilePaths.length > 0;
|
||||
const hasFilePaths = selectedFilePaths.length > 0 && selectedFilePaths[0] !== '';
|
||||
const filePathsDiffer = JSON.stringify(selectedFilePaths) !== JSON.stringify(prevProps.selectedFilePaths);
|
||||
|
||||
if (hasFilePaths && filePathsDiffer) {
|
||||
|
||||
Reference in New Issue
Block a user