Skip to content

Commit 318f860

Browse files
committed
Feature: remove componentDidMount
1 parent ca91156 commit 318f860

File tree

1 file changed

+0
-10
lines changed
  • packages/neos-ui/src/Containers/PrimaryToolbar/DimensionSwitcher

1 file changed

+0
-10
lines changed

packages/neos-ui/src/Containers/PrimaryToolbar/DimensionSwitcher/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,6 @@ export default class DimensionSwitcher extends PureComponent {
6666
loadingPresets: {}
6767
};
6868

69-
componentDidMount() {
70-
const activePresets = mapValues(
71-
this.props.activePresets,
72-
dimensionPreset => dimensionPreset.name
73-
);
74-
this.setState({
75-
transientPresets: activePresets
76-
});
77-
}
78-
7969
getDimensionIcon = (dimensionName, contentDimensionsObject) => {
8070
const dimensionConfiguration = contentDimensionsObject[dimensionName];
8171
return dimensionConfiguration?.icon || null;

0 commit comments

Comments
 (0)