Hello from the Wix DevRel Team!
I think the issue has to do with the fact that you’re calling the wixData . insert ( “Stories” , toInsert ) function inside of your hook. Have you tried moving that outside of your Stories_beforeInsert() function and calling it there?
Hope this helps!
Rob