Do not show warning if Browser Appearance has no field references (#3566)

This commit is contained in:
Abdo 2024-11-17 17:38:21 +03:00 committed by GitHub
parent 6387d5168b
commit 1070fe1685

View file

@ -628,7 +628,7 @@ pub fn render_card(
TEMPLATE_BLANK_CLOZE_LINK,
tr.card_template_rendering_more_info()
))
} else if !is_cloze && !qtmpl.renders_with_fields(context.nonempty_fields) {
} else if !is_cloze && !browser && !qtmpl.renders_with_fields(context.nonempty_fields) {
Some(format!(
"<div>{}<br><a href='{}'>{}</a></div>",
tr.card_template_rendering_empty_front(),