prismicio / prismic-toolbar

An embeddable UI for Prismic content and previews directly on your website.
12 stars 19 forks source link

Issue with the dev mode #57

Closed francois-riviere closed 4 years ago

francois-riviere commented 4 years ago

On a gatsby project, dev mode displays an empty page + make the toolbar and edit button crash

stack trace: Uncaught (in promise) TypeError: e.map is not a function at n.getItemInfo (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:13) at prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:13 at Array.map () at n.value (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:13) at B (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at L (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1 at j (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1 at j (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at D (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at B (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at L (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1 at j (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1 at j (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at D (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at B (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at L (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at B (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1) at I (prismic.min.js?new=true&repo=prismic-test-gatsby.wroom.io:1)

francois-riviere commented 4 years ago

Duplicated.