dify - 💡(How to fix) Fix Bug: Apps page crashes when dataset icon metadata is missing [3 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

TypeError: Cannot read properties of null (reading 'icon')

Fix Action

Fixed

Code Example

TypeError: Cannot read properties of null (reading 'icon')

---

This page couldn’t load
Reload to try again, or go back.
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.2

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

  • Have at least one dataset record with icon_info set to null or missing icon fields.
  • Sign in to the console.
  • Open the Studio apps page at /apps.
  • Wait for the shared header dataset navigation to load the dataset list.

Observed browser runtime error:

TypeError: Cannot read properties of null (reading 'icon')

The failing path is the shared dataset navigation, which reads dataset icon fields while rendering navigation items.

✔️ Expected Behavior

  • The apps page renders normally.
  • Datasets with missing icon metadata use a default dataset icon.

❌ Actual Behavior

  • The page falls back to the generic error screen:
This page couldn’t load
Reload to try again, or go back.
  • The crash happens before the user can interact with the apps list, even though the apps API request succeeds.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING