Skip to content

Commit e0342fb

Browse files
committed
Show version in picker
1 parent 5acd3ea commit e0342fb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

client/modules/IDE/components/Editor/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class Editor extends React.Component {
259259
}
260260
} else if (this.getContent().content !== this.props.file.content) {
261261
// TODO: make this not break regular edits!
262-
this._cm.setValue(this.props.file.content);
262+
// this._cm.setValue(this.props.file.content);
263263
}
264264
if (this.props.fontSize !== prevProps.fontSize) {
265265
this._cm.getWrapperElement().style[

client/modules/IDE/components/VersionPicker.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { updateFileContent } from '../actions/files';
88

99
const VersionPicker = () => {
1010
const { indexID, versionInfo } = useP5Version();
11+
console.log(versionInfo);
1112
const dispatch = useDispatch();
1213
const dispatchReplaceVersion = useCallback(
1314
(version) => {
@@ -22,7 +23,7 @@ const VersionPicker = () => {
2223
}
2324

2425
return (
25-
<DropdownMenu anchor={<span>Version</span>} align="left">
26+
<DropdownMenu anchor={<span>{versionInfo.version}</span>} align="left">
2627
{p5Versions.map((version) => (
2728
<MenuItem key={version} onClick={() => dispatchReplaceVersion(version)}>
2829
{version}

0 commit comments

Comments
 (0)