We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0bf6ba2 + d3c124d commit a496286Copy full SHA for a496286
1 file changed
src/util/mqttUtils.ts
@@ -25,6 +25,9 @@ export const startMqtt = (routes, setState, setClient, topicRef, cancelRef) => {
25
}
26
27
const feed = routes[0]?.feedId;
28
+ if (!feed || !settings[feed]) {
29
+ return Promise.resolve(null);
30
+ }
31
const client = mqtt.connect(settings[feed].mqtt);
32
setState({
33
client: client,
0 commit comments