Skip to content

Commit 4069aeb

Browse files
authored
Merge branch 'develop' into shreyash/fix-folders_auto-expand_on_save
2 parents cf70c0d + c3bd42f commit 4069aeb

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

client/modules/IDE/components/EditableInput.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ function EditableInput({
3131
inputRef.current?.focus();
3232
}
3333
}, [isEditing]);
34+
React.useEffect(() => {
35+
setCurrentValue(value);
36+
}, [value]);
3437

3538
function beginEditing() {
3639
setIsEditing(true);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p5.js-web-editor",
3-
"version": "2.9.1",
3+
"version": "2.9.2",
44
"description": "The web editor for p5.js.",
55
"scripts": {
66
"clean": "rimraf dist",

server/controllers/session.controller.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,11 @@ export function getSession(req, res) {
3131
}
3232

3333
export function destroySession(req, res, next) {
34-
req.session.destroy((err) => {
34+
req.logout((err) => {
3535
if (err) {
3636
next(err);
3737
return;
3838
}
39-
req.logout((error) => {
40-
if (error) {
41-
next(error);
42-
return;
43-
}
44-
res.json({ success: true });
45-
});
39+
res.json({ success: true });
4640
});
4741
}

0 commit comments

Comments
 (0)