Explorar el Código

Set the class name correctly (never set to boolean).

This caused a helpful error in the console about not setting className to false.
Jason Grout hace 5 años
padre
commit
05a65f0d8c
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      packages/logconsole-extension/src/index.tsx

+ 3 - 1
packages/logconsole-extension/src/index.tsx

@@ -358,7 +358,9 @@ export class LogLevelSwitcher extends ReactWidget {
         <label
           htmlFor={this._id}
           className={
-            logger === null && 'jp-LogConsole-toolbarLogLevel-disabled'
+            logger === null
+              ? 'jp-LogConsole-toolbarLogLevel-disabled'
+              : undefined
           }
         >
           Log Level: