Explorar o código

i hate order of precedence (#5134)

Khaleel Al-Adhami hai 1 mes
pai
achega
3de33bd1f8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      reflex/.templates/web/utils/state.js

+ 1 - 1
reflex/.templates/web/utils/state.js

@@ -954,7 +954,7 @@ export const isTrue = (val) => {
  * @returns True if the value is not null or undefined, false otherwise.
  */
 export const isNotNullOrUndefined = (val) => {
-  return val ?? undefined !== undefined;
+  return (val ?? undefined) !== undefined;
 };
 
 /**