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 d3f2f45805
commit 03c50c8332
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(),