Parcourir la source

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 il y a 5 ans
Parent
commit
05a65f0d8c
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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: