Inconsistent fields in beforeUpdate

The question is why the field wasn’t there at first. I updated beforeUpdate to do a console log and, because starlight restarted, it then suddenly showed the missing field next time I tried to save