The code worked fine when it was in the client scr...
# suitescript
k
The code worked fine when it was in the client script deployed on the transaction type but I've moved it to an imported custom module and this started happening.