Bug with List showing conditional view

The following code seems to fail to list anything in the list view

Code Block
var body: some View {
        List(selection: $controller.selectedObject) {
            ForEach(self.controller.thumbNails, id:\.self) { object in
                Group {
                    if hasImage {
                        Text("Image")
                    } else {
                        Text("No Image")
                    }
                }
            }
        }

I assume this isa bug because it seems to work under Xcode 11.5
Please provide more context.
With filling missing parts by guess, your code works as expected both in Xcode 11.5 and 12 beta.
Bug with List showing conditional view
 
 
Q