Closed Chapabu closed 4 years ago
If you have the docs engine set to Twig, you only ever get an error saying entity.variants is not a function. I've tracked this down to line 68 in adapter.js.
entity.variants is not a function
adapter.js
entity = entity.isVariant ? entity : entity.variants().default();
A document is not a variant, so the second part is called. but variants() is not a method on a document object.
variants()
Just needs an if (entity.isDoc) wrapping around that somewhere so we don't hit that second part for documents.
if (entity.isDoc)
I'll try and get onto this tomorrow.
If you have the docs engine set to Twig, you only ever get an error saying
entity.variants is not a function
. I've tracked this down to line 68 inadapter.js
.A document is not a variant, so the second part is called. but
variants()
is not a method on a document object.Just needs an
if (entity.isDoc)
wrapping around that somewhere so we don't hit that second part for documents.