@mxenabled/connect-widget 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -8941,7 +8941,7 @@ const UNINITIALIZED$2 = {
8941
8941
  const initialize = (member, recentJob, config, isComboJobsEnabled) => {
8942
8942
  const jobs = [];
8943
8943
  const firstWidgetJobType = getFirstWidgetJobType(config, isComboJobsEnabled);
8944
- if (member.is_being_aggregated && recentJob.job_type !== firstWidgetJobType) {
8944
+ if (member.is_being_aggregated && recentJob && recentJob.job_type !== firstWidgetJobType) {
8945
8945
  jobs.push({ type: recentJob.job_type, status: JOB_STATUSES.ACTIVE });
8946
8946
  jobs.push({ type: firstWidgetJobType, status: JOB_STATUSES.PENDING });
8947
8947
  } else {