Skip to content

Commit

Permalink
admin alert does not include non-displayable groups
Browse files Browse the repository at this point in the history
  • Loading branch information
danielshid committed Oct 25, 2024
1 parent 58e2128 commit 2fb33af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default function EditMeterModalComponent(props: EditMeterModalComponentPr
// Tells if the change should be cancelled.
// Checks for groups that include the meter being edited.
for (const groupId of Object.values(groupDataByID)) {
if (groupId.deepMeters.includes(meterState.id)) {
if (groupId.displayable && groupId.deepMeters.includes(meterState.id)) {
groups += `${groupId.name}\n`;
}
}
Expand Down

0 comments on commit 2fb33af

Please sign in to comment.