File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/components/Editor/Runners/PythonRunner/PyodideRunner Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ const PyodideRunner = (props) => {
90
90
setIndentationLevel ( ( prevIndentationLevel ) => prevIndentationLevel + 1 ) ;
91
91
} ;
92
92
93
- const decrementIndentationLevel = ( ) => {
94
- setIndentationLevel ( ( prevIndentationLevel ) => {
95
- return Math . max ( 0 , prevIndentationLevel - 1 ) ;
96
- } ) ;
97
- } ;
98
-
99
93
useEffect ( ( ) => {
100
94
console . log ( "indentationLevel" , indentationLevel ) ;
101
95
} , [ 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
253
const encoder = new TextEncoder ( ) ;
You can’t perform that action at this time.
0 commit comments