From 99ab17754b94ea4d9a2b90b0d579683abafe3e50 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 14 Jun 2023 12:34:30 +0530 Subject: [PATCH] fix: removing website theme breaks website (#21373) --- frappe/templates/includes/head.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/templates/includes/head.html b/frappe/templates/includes/head.html index 8ce6a76e50..154aff7048 100644 --- a/frappe/templates/includes/head.html +++ b/frappe/templates/includes/head.html @@ -2,8 +2,9 @@ {{ head_html or "" }} {%- endif %} -{%- if theme.name != 'Standard' -%} +{%- if theme and theme.name != 'Standard' -%} + {%- else -%} {{ include_style('website.bundle.css') }} {%- endif -%}