diff --git a/resources/js/processes/designer/Assets.vue b/resources/js/processes/designer/Assets.vue index 9e236122fa..6563f6f293 100644 --- a/resources/js/processes/designer/Assets.vue +++ b/resources/js/processes/designer/Assets.vue @@ -43,6 +43,7 @@ { this.optionsType = response.data.data; + // Filter optionsType based on package installation + this.optionsType = Object.keys(this.optionsType).reduce((accumulator, type) => { + if (this.isPackageInstalled(this.optionsType[type].package)) { + accumulator[type] = this.optionsType[type]; + } + return accumulator; + }, {}); + // Add all asset types to selectedTypes Object.keys(this.optionsType).forEach((type) => { this.selectedTypes.push(this.optionsType[type].asset_type); });