Commit 972dcd19 authored by Roque's avatar Roque

erp5_web_project_ui: fix error when no web page

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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment