avoiding predicate subject missmatches, correct the sentence. if no errors put no errors. Line dancing is when a group of people dance in a line.
line dancing is a type of dance, not an event so "when" isn't the right word I guess we could say "Line dancing is a dance in which a group of people dance in a line.?