We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e62e6f4 commit 3e8f222Copy full SHA for 3e8f222
projects/truly-ui/src/components/modal/services/modal.service.ts
@@ -158,9 +158,11 @@ export class ModalService implements OnDestroy {
158
}
159
160
private setModalProperties(properties) {
161
- Object.keys(properties).forEach( (value, index) => {
162
- (this.componentInjected.instance)[value] = properties[value];
163
- });
+ if (properties) {
+ Object.keys(properties).forEach( (value, index) => {
+ (this.componentInjected.instance)[value] = properties[value];
164
+ });
165
+ }
166
167
168
private setComponentWrapperProperties(config, identifier, parentElement) {
0 commit comments