This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Nik Udovitskiy
Posted Oct 07 - Read on Facebook

Hey guys, I'm struggling with Benjamin Den Boer's "List Sorting" demo in the Framer's gallery. My problem is that the code throws an "undefined is not an object" for the layer variable when the getIndexByFrame(layer.frame) line is called (iPhone 6+ in the preview).

https://share.framerjs.com/xkfv4958ql47

Note: this code works fine if you open the project, but if you open a fresh Framer file and copy/paste the code, it breaks.

Please help me out if you can. Thank you!