Commit 972dcd19 by Roque

erp5_web_project_ui: fix error when no web page

1 parent c90f2131
......@@ -49,7 +49,7 @@ lockGadgetInQueue, unlockGadgetInQueue*/
select_list: ['text_content']
})
.push(function (result_list) {
if (result_list.data.rows) {
if (result_list.data.rows[0]) {
id = result_list.data.rows[0].id;
content = result_list.data.rows[0].value.text_content;
return gadget.jio_getAttachment(id, "links")
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!