Can’t rectifiy the mode in Trigger, Condition and Action when made a mistake, need to delete from the end to the top to the mistake and redo every setting the rest.
There is a “Change Mode” option in the menu at the top right in the Automation editor.