Skip to content

Commit

Permalink
fixing issues with clientside pages emphasis being null pnp#1111
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-rodgers committed Apr 2, 2020
1 parent 1b4d95e commit e019208
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sp/clientside-pages/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ export class _ClientsidePage extends _SharePointQueryable implements IClientside
}
}

const section = this.getOrCreateSection(zoneIndex, layoutIndex, control.data.emphasis.zoneEmphasis || 0);
const zoneEmphasis = control.data?.emphasis?.zoneEmphasis ?? 0;
const section = this.getOrCreateSection(zoneIndex, layoutIndex, zoneEmphasis);

const columns = section.columns.filter(c => c.order === sectionIndex);
if (columns.length < 1) {
Expand Down

0 comments on commit e019208

Please sign in to comment.