Skip to content

Commit

Permalink
use toJSON method, remove old commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Jul 22, 2023
1 parent 8e32e87 commit 632a236
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,14 @@ export class Application extends NamedDefaultableInMemoryEntity {
return new this.constructor.Executable({ ...tree[key], name: key });
});
const allowedExecutables = executableList.filter((exe) => {
const { supportedApplicationVersions } = exe._json;
const { supportedApplicationVersions } = exe.toJSON();
return (
!supportedApplicationVersions ||
(supportedApplicationVersions &&
supportedApplicationVersions.includes(this.prop("version")))
);
});
return allowedExecutables;
// return Object.keys(tree).map((key) => {
// return new this.constructor.Executable({ ...tree[key], name: key });
// });
}

get hasAdvancedComputeOptions() {
Expand Down

0 comments on commit 632a236

Please sign in to comment.