We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 041cd83 commit 7f99383Copy full SHA for 7f99383
packages/data/src/lib/resource-pop/resource-pop.component.ts
@@ -57,7 +57,7 @@ export class ResourcePopComponent extends PopComponent {
57
58
/** Returns true if the given method is part of the methods array (or if there is no methods array) */
59
public hasMethod(method: string) {
60
- return this.config.methods && this.config.methods.indexOf(method) !== -1;
+ return this.config && this.config.methods && this.config.methods.indexOf(method) !== -1;
61
}
62
63
/** Determines if the current form can be saved, based on the allowed method (edit/update). */
0 commit comments