fix typo
This commit is contained in:
parent
e3e983afc4
commit
370cf67b16
@ -17,7 +17,7 @@ from reflex.vars.sequence import LiteralStringVar
|
|||||||
|
|
||||||
|
|
||||||
@once
|
@once
|
||||||
def performace_mode():
|
def get_performance_mode():
|
||||||
"""Get the performance mode.
|
"""Get the performance mode.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
@ -35,7 +35,7 @@ def validate_str(value: str):
|
|||||||
Raises:
|
Raises:
|
||||||
ValueError: If the value is a Var and the performance mode is set to raise.
|
ValueError: If the value is a Var and the performance mode is set to raise.
|
||||||
"""
|
"""
|
||||||
perf_mode = performace_mode()
|
perf_mode = get_performance_mode()
|
||||||
if perf_mode != PerformanceMode.OFF and value.startswith("reflex___state"):
|
if perf_mode != PerformanceMode.OFF and value.startswith("reflex___state"):
|
||||||
if perf_mode == PerformanceMode.WARN:
|
if perf_mode == PerformanceMode.WARN:
|
||||||
console.warn(
|
console.warn(
|
||||||
|
Loading…
Reference in New Issue
Block a user