Try this fix. the result from airtable is async. this means that if you are dependent upon an airtable response, which you are, then you need to place your code that depends on that data from airtable within the async ‘then do’ section of the code block. the app needs to wait for the response before doing anything else. that delay wouldn’t work if your internet was slower. you would need to change it to match the network latency always
see this shot of your code and what you need to change