fix: sider fix
This commit is contained in:
parent
f8a6736183
commit
e8d958dd3e
1 changed files with 3 additions and 1 deletions
|
|
@ -329,7 +329,9 @@ frappe.views.Workspace = class Workspace {
|
|||
|
||||
add_custom_cards_in_content() {
|
||||
let index = -1;
|
||||
this.content.find((item, i) => { if (item.type == 'card') index = i });
|
||||
this.content.find((item, i) => {
|
||||
if (item.type == 'card') index = i;
|
||||
});
|
||||
if (index !== -1) {
|
||||
this.content.splice(index+1, 0, {"type": "card", "data": {"card_name": "Custom Documents", "col": 4}});
|
||||
this.content.splice(index+2, 0, {"type": "card", "data": {"card_name": "Custom Reports", "col": 4}});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue