Skip to content

Commit 50be0e9

Browse files
committed
Removed redundant login in plotly.py
1 parent bce265a commit 50be0e9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

reflex/components/plotly/plotly.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,6 @@ def add_custom_code(self) -> list[str]:
238238
const _rxLocaleCache = {};
239239
240240
function _rxLoadLocale(locale) {
241-
// Guard against path traversal / invalid locale codes
242-
if (!/^[a-z]{2,3}(-[a-z]{2,4})?$/.test(locale.toLowerCase())) {
243-
console.warn(
244-
"[rx.plotly] Locale \"" + locale + "\" is not a valid BCP-47 code and was ignored."
245-
);
246-
return Promise.resolve(null);
247-
}
248-
249241
const key = locale.toLowerCase();
250242
251243
// Store the Promise itself — prevents duplicate in-flight fetches

0 commit comments

Comments
 (0)