This commit is contained in:
Koenkk
2018-12-06 21:27:41 +01:00
committed by Koen Kanters
parent c213a96133
commit dcb75b19d3
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class DevicePublish {
topic = topic.replace(`/${type}`, '');
// Check if we have to deal with a postfix.
let postfix = null;
let postfix = '';
if (postfixes.find((p) => topic.endsWith(p))) {
postfix = topic.substr(topic.lastIndexOf('/') + 1, topic.length);