Explorar el Código

fix: batch deletion of device allocation

Casper Dai hace 2 años
padre
commit
3f75695ae0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/realm/assign/Device.vue

+ 1 - 1
src/views/realm/assign/Device.vue

@@ -128,7 +128,7 @@ export default {
     },
     onBatchDel () {
       if (this.$selectionItems?.length) {
-        unbindDevices(this.$selectionItems.map(({ deviceRelationIds }) => deviceRelationIds)).then(() => {
+        unbindDevices(this.$selectionItems.map(({ deviceRelationId }) => deviceRelationId)).then(() => {
           this.$refs.table.decrease(this.$selectionItems.length)
           this.$selectionItems = null
         })