Skip to content

Commit

Permalink
Merge pull request #3172 from emqx/kinple/tongtech
Browse files Browse the repository at this point in the history
refactor(connector): adapt mqtt connector in 583
  • Loading branch information
Kinplemelon authored Jan 16, 2025
1 parent f561741 commit f455e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/Rule/connector/useComponentsHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default (
}
// Add labels and descriptions for ids and node
const i18nPrefix = getI18nPrefix(BridgeType.MQTT)
if (comRet?.static_clientids.items.properties) {
if (comRet?.static_clientids?.items?.properties) {
const props = comRet.static_clientids.items.properties
if (props.ids) {
setLabelAndDesc(props.ids, `${i18nPrefix}ids`)
Expand Down

0 comments on commit f455e9a

Please sign in to comment.