fix: update extension monitors after locale change

This commit is contained in:
Andy O'Neill committed 2022-11-30 13:32:18 -05:00
1 parent 68b45e38a3
commit 2916d9c1a8
1 file changed
+3
+3
View File
@@ -250,6 +250,7 @@ Monitor.propTypes = {
resizeMonitorRect: PropTypes.func.isRequired,
spriteName: PropTypes.string, // eslint-disable-line react/no-unused-prop-types
targetId: PropTypes.string,
toolboxXML: PropTypes.string, // eslint-disable-line react/no-unused-prop-types
value: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
@@ -265,6 +266,8 @@ Monitor.propTypes = {
};
const mapStateToProps = state => ({
monitorLayout: state.scratchGui.monitorLayout,
// render on toolbox updates since changes to the blocks could affect monitor labels, i.e. updated locale
toolboxXML: state.scratchGui.toolbox.toolboxXML,
vm: state.scratchGui.vm
});
const mapDispatchToProps = dispatch => ({