Skip to content

Commit c3bd42f

Browse files
authored
Merge pull request #2548 from Akhilbisht798/Akhil/sketch-display
fix: displays random sketch name on reload
2 parents e33f2de + 8c03359 commit c3bd42f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
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);

0 commit comments

Comments
 (0)