The checkbox state was becoming out of sync when users edited the common config snippet. Added a ref flag to track when updates are coming from common config changes to prevent the handleChange function from incorrectly resetting the checkbox state during these updates.