Bug in studio prevents compilation

I was failing to compile and deploy Crypto Pizzas Contract Template over and over again. And I found that contract without even empty constructor cannot be compiled due to bug in updateContractConfig.epic.ts:21. It tries to get inputs length from the first element of a constructorData array but if constructor is not defined then array is empty (like you can see below).

Due to that code I was getting this error:


And I couldn’t proceed with a deploy.

I found a hack to overcome this problem by creating an empty constructor in contract.
constructor() public {}

Probably code could be fixed by applying optional chaining operator like so:
constructorData[0]?.inputs.length

Hi @hakier!

Sorry, this issue totally felt through the cracks and we were not aware until now. Sorry once again. We just opened a ticket in the repo directly to follow up the progress.