[FIX] website_slides: (temporarily) fix infinite loop

Do not fall into an infinite loop when fetching content of an empty webpage
slide in the newly-introduced fullscreen mode.

This commit is linked to task ID 1942836 and PR #31239.

Co-Authored-By: Aurélien Warnon <awa@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>
This commit is contained in:
Thibault Delavallée
2019-02-19 16:54:18 +00:00
co-authored by Aurélien Warnon
parent 18f917fe3b
commit 4f380f4aeb
@@ -232,8 +232,10 @@ odoo.define('website_slides.fullscreen', function (require) {
'slide_id': self.slide.id
}
}).then(function(data){
self.slide.htmlContent = data.html_content;
self._renderPlayer();
if (data.html_content) {
self.slide.htmlContent = data.html_content;
self._renderPlayer();
}
})
},
/**