From 268ac00d10c8925becb81f516e0c34aaedc8ad44 Mon Sep 17 00:00:00 2001 From: paulr34 <64710345+paulr34@users.noreply.github.com> Date: Fri, 16 Dec 2022 12:23:56 -0500 Subject: [PATCH] issue_859 (#860) * array and method should not have the same name changing array references to new name taking out unused getter * changing to v-show --- src/components/ZclCreateModifyEndpoint.vue | 29 ++++++++-------------- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/src/components/ZclCreateModifyEndpoint.vue b/src/components/ZclCreateModifyEndpoint.vue index 0265a8dd8e..19f6e97c8d 100644 --- a/src/components/ZclCreateModifyEndpoint.vue +++ b/src/components/ZclCreateModifyEndpoint.vue @@ -32,7 +32,7 @@ limitations under the License. min="0" /> { this.$store @@ -318,8 +312,7 @@ export default { profileId: parseInt(this.shownEndpoint.profileIdentifier), endpointType: response.id, endpointVersion: this.shownEndpoint.deviceVersion, - deviceIdentifier: - this.deviceTypeRefAndDeviceIdPair.deviceIdentifier, + deviceIdentifier: this.devicePair.deviceIdentifier, }) .then((res) => { if (this.shareClusterStatesAcrossEndpoints()) { @@ -362,7 +355,7 @@ export default { this.$store.dispatch('zap/updateEndpointType', { endpointTypeId: endpointTypeReference, updatedKey: RestApi.updateKey.deviceTypeRef, - updatedValue: this.deviceTypeRefAndDeviceIdPair.deviceTypeRef, + updatedValue: this.devicePair.deviceTypeRef, }) this.$store.dispatch('zap/updateEndpoint', { @@ -386,7 +379,7 @@ export default { }, { updatedKey: RestApi.updateKey.deviceId, - value: parseInt(this.deviceTypeRefAndDeviceIdPair.deviceIdentifier), + value: parseInt(this.devicePair.deviceIdentifier), }, ], }) @@ -434,8 +427,8 @@ export default { try { done( { - deviceTypeRef: this.deviceTypeRefAndDeviceIdPair.deviceTypeRef - ? this.deviceTypeRefAndDeviceIdPair.deviceTypeRef + deviceTypeRef: this.devicePair.deviceTypeRef + ? this.devicePair.deviceTypeRef : this.customDeviceIdReference, deviceIdentifier: parseInt(val), },