From 81d13607dd43143081234e5ffbdea5b6cf99b875 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Sun, 2 May 2021 15:04:59 +0530 Subject: [PATCH] fix: Fallback value for bundled asset --- frappe/utils/jinja_globals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/utils/jinja_globals.py b/frappe/utils/jinja_globals.py index e0ed849ccf..c807bcb286 100644 --- a/frappe/utils/jinja_globals.py +++ b/frappe/utils/jinja_globals.py @@ -83,8 +83,8 @@ def include_style(path): def bundled_asset(path): from frappe.utils import get_assets_json - if path.startswith("/assets") and ".bundle." not in path: + if path.startswith("/assets") or ".bundle." not in path: return path bundled_assets = get_assets_json() - return bundled_assets.get(path) + return bundled_assets.get(path) or path