Skip to content

Commit

Permalink
Update: implement missing _logState condition (fixes #194). (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielghost authored May 29, 2024
1 parent 275462a commit 6690191
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ export function addButtonComponents() {
* Pretty print locking state for current page
*/
export function logTrickleState() {
if (logging._config?._level !== 'debug') return;
const trickleConfig = Adapt.config.get('_trickle');
if (!trickleConfig?._logState || logging._config?._level !== 'debug') return;
if (!Adapt.parentView?.model?.isTypeGroup('page')) {
logging.debug('TRICKLE GLOBAL STATE');
Adapt.course.getAllDescendantModels(true).filter(model => model.get('_isAvailable')).forEach(model => {
Expand Down

0 comments on commit 6690191

Please sign in to comment.