Преглед изворни кода

i hate order of precedence (#5134)

Khaleel Al-Adhami пре 1 месец
родитељ
комит
3de33bd1f8
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
 };
 
 /**