Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
E068097 committed Nov 29, 2024
2 parents c30e0fa + bbf567d commit f9eb5ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void AddNewDevice(DeviceListItem device)
{
var layer = layers.FirstOrDefault(layer => layer.Id == device.LayerId);

if (layer?.Planning is not "None" and not null)
if (layer?.Planning is not null and not "None")
{
// If the layer linked to a device already has a planning, add the device to the planning list
foreach (var planning in this.planningCommands.Where(planning => planning.planningId == layer.Planning))
Expand Down

0 comments on commit f9eb5ab

Please sign in to comment.