From ae77f92821174e2966bd75854640acd4edc9825c Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Mon, 21 Aug 2023 13:31:52 +0200 Subject: [PATCH] fix: render count on image capture Immediately render total_count as "No Images", instead of displaying the name of the HTML field (total_count). --- frappe/public/js/frappe/ui/capture.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/public/js/frappe/ui/capture.js b/frappe/public/js/frappe/ui/capture.js index adef389099..50485c702c 100644 --- a/frappe/public/js/frappe/ui/capture.js +++ b/frappe/public/js/frappe/ui/capture.js @@ -105,6 +105,7 @@ frappe.ui.Capture = class { let field = me.dialog.get_field("capture"); $(field.wrapper).html(me.$template); + me.update_count(); me.dialog.get_close_btn().on("click", () => { me.hide();