We have developed a WAB Widget that add a FeatureLayer to the map by code. This layer is build using a featureCollection. Later, this FeatureLayer have to be removed to add another FeatureLayer with another featureCollection as source. After the first FeatureLayer have been removed from the map the AttributeTable widget crash. Are there some special steps to do before a FeatureLayer can be removed to the map without have a negative effect to the Attribute Table?
Thanks,
Marcelo