biobricks / bionet-2

The bionet web app
3 stars 2 forks source link

/inventory/<id> path async issues #120

Open Juul opened 7 years ago

Juul commented 7 years ago

I wanted the /scan page to redirect to /inventory/<item_id> and pull up the item automatically whenever an item is scanned.

I added the code to do this (see line 512 to 536 in bionet-setup-storage.tag.html) but I ended up having to wrap it in a setTimeout because it simply doesn't work otherwise.

This needs to work without a setTimeout (which is a terribly ugly hack).

I didn't tag this with the SB 7 deadline but it really would be good to have it sorted out before then.