Skip to content

Commit b986ea2

Browse files
karm1000mergify[bot]
authored andcommitted
fix(purchase-reco): use optional chaining for message handling in download_gstr function
(cherry picked from commit b4c165c)
1 parent 216ae41 commit b986ea2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,10 +1225,10 @@ async function download_gstr(
12251225
frm.events.show_progress(frm, "download");
12261226
const { message } = await frm.taxpayer_api_call("download_gstr", args);
12271227

1228-
if (message.message) {
1228+
if (message?.message) {
12291229
frappe.show_alert({
12301230
message: message.message,
1231-
indicator: message.indicator || "blue",
1231+
indicator: message?.indicator || "blue",
12321232
});
12331233
}
12341234
});

0 commit comments

Comments
 (0)