When user wants to download the source code of a program that he has already deployed it does not work
Error
TypeError: Cannot read properties of undefined (reading 'item_hash')
The idea is to make sure that the hash item exists.
Solution
The problem was due to the use of a variable declaration with var.
So we had a scoped problem, for this reason it is better to declare this iteration variable in a loop with let.
In fact
var => function scoped
let or const=> block scoped
Issue (#84)
When user wants to download the source code of a program that he has already deployed it does not work
Error
TypeError: Cannot read properties of undefined (reading 'item_hash')
The idea is to make sure that the hash item exists.
Solution The problem was due to the use of a variable declaration with
var
. So we had a scoped problem, for this reason it is better to declare this iteration variable in a loop withlet
.In fact
var
=> function scopedlet
orconst
=> block scoped