Skip to content
Permalink
Browse files

[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>
  • Loading branch information...
tde-banana-odoo and awa-odoo committed Feb 19, 2019
1 parent 18f917f commit 4f380f4aeb5dc2d09beb9d6d3d48077c3ec021bb
Showing with 4 additions and 2 deletions.
  1. +4 −2 addons/website_slides/static/src/js/slides_course_fullscreen_player.js
@@ -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();
}
})
},
/**

0 comments on commit 4f380f4

Please sign in to comment.
You can’t perform that action at this time.