You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a subreddit has a sidebar with an Image Widget but doesn't include a link in that widget then apps will get an error if they try to call reddit.getWidgets(subredditName). This will affect any app trying to access sidebar information. Example error:
Error: Image widget data is missing linkUrl
at assertNonNull (node_modules/@devvit/shared-types/NonNull.js:3:14)
at <unknown> (node_modules/@devvit/public-api/apis/reddit/models/Widget.js:146:12)
at Array.map (<anonymous>)
at new (node_modules/@devvit/public-api/apis/reddit/models/Widget.js:142:74)
at _Widget.getWidgets (node_modules/@devvit/public-api/apis/reddit/models/Widget.js:64:33)
at process.processTicksAndRejections (node_modules/core-js/internals/global.js:14:3)
at async (src/createRulesFields.tsx:8:18)
at async (src/menuItemPressed.tsx:13:43)
at async (src/main.tsx:157:4)
at async (node_modules/@devvit/public-api/devvit/internals/menu-items.js:64:4) {
cause: [Error: Image widget data is missing linkUrl]