Handle empty items in ids
This commit is contained in:
@@ -247,8 +247,8 @@ api:
|
||||
visible: bool # Set to true to show the component, or false to hide it.
|
||||
then:
|
||||
- lambda: |-
|
||||
if (!id(is_uploading_tft)) {
|
||||
for (const std::string& component_id : ids) {
|
||||
for (const std::string& component_id : ids) {
|
||||
if (!id(is_uploading_tft) and !component_id.empty()) {
|
||||
set_component_visibility->execute(component_id.c_str(), visible);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user