Drawer Document from Reference Null Problem

I am setting a page state with a document reference from the action flow editor from on tap. This is from a document in a query collection on the main page. The end drawer has a document from reference query that is set to that page state.

The unexpected null error occurs on the main page load since the document reference is null and the end drawer query fails. This pattern of dynamic drawers using page states seems to be really straightforward but I have searched and can't find anything that seems to show how this should be setup.


3
2 replies