Follow up with another flushing of boiling water. Of course, a dish of dead gnats can be unsightly, so if you're looking for a container that offers both form and function, you have options.
“When the soil remains consistently moist, it creates an ideal breeding ground for fungus gnats. They’re also attracted to decaying plant matter, so overgrown or dead foliage can contribute.