Skip to content

Commit

Permalink
revert: remove default Payment Request indicator color
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdeali099 committed Nov 26, 2024
1 parent 91955e2 commit 37ceb09
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const INDICATORS = {
frappe.listview_settings["Payment Request"] = {
add_fields: ["status"],
get_indicator: function (doc) {
return [__(doc.status), INDICATORS[doc.status] || "gray", `status,=,${doc.status}`];
if (!doc.status || !INDICATORS[doc.status]) return;

return [__(doc.status), INDICATORS[doc.status], `status,=,${doc.status}`];
},
};

0 comments on commit 37ceb09

Please sign in to comment.