Thing copy: Keep label (#2858)

Signed-off-by: Florian Hotze <dev@florianhotze.com>
pull/2859/head
Florian Hotze 2024-11-02 02:26:57 +01:00 committed by GitHub
parent 00e7f10408
commit 7602f7156a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export default {
} catch (e) {
console.log('Cannot generate ID: ' + e)
}
this.thing.label = this.thingType.label
if (!this.thingCopy) this.thing.label = this.thingType.label
if (this.thingCopy) {
if (this.thing.bridgeUID) this.thing.UID = [this.thing.thingTypeUID, this.thing.bridgeUID.substring(this.thing.bridgeUID.lastIndexOf(':') + 1), this.thing.ID].join(':')