Please move this code fragment after the check of `e.detail.current` as we usually check it at first when handling a `panelready` event.