Stop setting `$form['#component']` on the `ComponentInstanceForm`, causes unnecessary serialization of `Component` config entity
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3554207. --> Reported by: [mayur-sose](https://www.drupal.org/user/3832406) Related to !269 !267 >>> <h3 id="overview">Overview</h3> <p> When attempting to remove images from older pages, the operation fails and the following error is returned from the API:<br><br> <code>"Can only set values on the active version"</code> </p> <p></p><h4 id="str">Steps to reproduce</h4> <ol> <li><code>git co 1.0.0-beta1</code></li> <li><code>ddev drush si --yes &amp;&amp; ddev drush en --yes canvas canvas_dev_mode canvas_test_sdc canvas_test_code_components --yes &amp;&amp; ddev drush upwd admin admin &amp;&amp; ddev drush php-scr canvas-create-pages.php</code></li> <li>// Edit one page, add e.g. the "Test SDC Image" with one image, publish page.</li> <li><code>git co 1.0.0-rc2</code></li> <li><code>ddev drush updb --yes</code></li> <li>// Try to e.g. remove the image.</li> </ol> <p>Expected outcome: Image deleted and I can select another one.<br> Current outcome: Nothing happens that the editor can see. Console log has the mentioned exception.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <h3 id="ui-changes">User interface changes</h3> > Related issue: [Issue #3493941](https://www.drupal.org/node/3493941) > Related issue: [Issue #3516602](https://www.drupal.org/node/3516602)
issue