Skip to content

Commit

Permalink
fix: add extra paramter to condition and fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrkollar committed Aug 2, 2024
1 parent bc871b7 commit cf1ba5e
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/pages/ZapConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -688,13 +688,14 @@ export default {
this.filePath = result.data.filePath
this.open = result.data.open
this.currentZapFilePackages = result.data.zapFilePackages
let currentZapFileZclPacakges = []
let currentTopLevelZapFilePacakges = []
let currentZapFileTemplatePacakges = []
console.log(result.data.zapFilePackages)
let currentZapFileZclPackages = []
let currentTopLevelZapFilePackages = []
let currentZapFileTemplatePackages = []
let currentZclPackagesAbsolutePaths = []
let currentTemplatePackagesAbsolutePaths = []
if (this.currentZapFilePackages) {
currentTopLevelZapFilePacakges = this.currentZapFilePackages.filter(
currentTopLevelZapFilePackages = this.currentZapFilePackages.filter(
(zfp) => zfp.type != dbEnum.packageType.zclXmlStandalone
)
currentZapFileZclPacakges = this.currentZapFilePackages.filter(
Expand All @@ -714,16 +715,20 @@ export default {
}
if (
this.zclPropertiesRow.length == currentZapFileZclPacakges.length ||
this.zclPropertiesRow.length == currentZapFileZclPackages.length ||
this.zclPropertiesRow.length == 1
) {
// if (this.zclGenRow.length == currentZapFileTemplatePacakges.length) {
this.selectedZclGenData = this.zclGenRow.map((zgr) => zgr.id)
this.selectedZclPropertiesDataIds = this.zclPropertiesRow.map(
(zpr) => zpr.id
)
this.selectedZclPropertiesData = this.zclPropertiesRow
if (
this.zclGenRow.length == currentZapFileTemplatePackages.length ||
this.zclGenRow.length == 1
) {
this.selectedZclGenData = this.zclGenRow.map((zgr) => zgr.id)
this.selectedZclPropertiesDataIds = this.zclPropertiesRow.map(
(zpr) => zpr.id
)
this.selectedZclPropertiesData = this.zclPropertiesRow
}
this.customConfig = 'select'
this.submitForm()
} else {
let selectableZclPackages = this.zclPropertiesRow.filter((zp) =>
Expand Down

0 comments on commit cf1ba5e

Please sign in to comment.