I'm trying to set some Simple Sitemap settings programmatically. I'm using the following to set whether or not a specific node is indexed:
\Drupal::service('simple_sitemap.generator')->setEntityInstanceSettings('node', $node->get('nid')->value, ['index' => FALSE]);
This works fine and I was able to see the results reflected in my sitemap. However, this is only reflected in the "Simple Sitemap" form of that node if the value is set to
FALSE neither radio button is selected.
This is confusing to others who are editing the site. How can I get this reflected in the form?