We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99009a3 commit 0f8f6bdCopy full SHA for 0f8f6bd
src/components/Editor/Runners/PythonRunner/PyodideRunner/PyodideRunner.jsx
@@ -90,12 +90,6 @@ const PyodideRunner = (props) => {
90
setIndentationLevel((prevIndentationLevel) => prevIndentationLevel + 1);
91
};
92
93
- const decrementIndentationLevel = () => {
94
- setIndentationLevel((prevIndentationLevel) => {
95
- return Math.max(0, prevIndentationLevel - 1);
96
- });
97
- };
98
-
99
useEffect(() => {
100
console.log("indentationLevel", indentationLevel);
101
}, [indentationLevel]);
@@ -253,7 +247,7 @@ const PyodideRunner = (props) => {
253
247
} else if (content.trimEnd() === "") {
254
248
console.log("the content is");
255
249
console.log(content);
256
- decrementIndentationLevel();
250
+ setIndentationLevel(0);
257
251
}
258
252
259
const encoder = new TextEncoder();
0 commit comments