Skip to content

Pipelines containing resources without icons no longer render #9570

Closed

Description

@selzoc

Summary

Since #9564 in 8.2.0 all of our pipelines that contain at least one resource that does not have an icon defined no longer render with the console error:

index.mjs:722 Uncaught TypeError: Cannot read properties of undefined (reading 'startsWith')
    at addIcon (index.mjs:722:16)
    at createGraph (index.mjs:582:9)
    at index.mjs:31:17
    at draw (index.mjs:20:3)
    at renderPipeline (index.mjs:11:5)
    at elm-setup.js?id=4bf3effe:66:22
addIcon @ index.mjs:722
createGraph @ index.mjs:582
(anonymous) @ index.mjs:31
draw @ index.mjs:20
renderPipeline @ index.mjs:11
(anonymous) @ elm-setup.js?id=4bf3effe:66
setTimeout
(anonymous) @ elm-setup.js?id=4bf3effe:66
Promise.then
(anonymous) @ elm-setup.js?id=4bf3effe:64
(anonymous) @ elm.min.js?id=0111ad60:1
Z @ elm.min.js?id=0111ad60:1
b @ elm.min.js?id=0111ad60:1
(anonymous) @ elm.min.js?id=0111ad60:1
xn @ elm.min.js?id=0111ad60:1
(anonymous) @ elm.min.js?id=0111ad60:1
(anonymous) @ elm.min.js?id=0111ad60:1
setTimeout
b @ elm.min.js?id=0111ad60:1
(anonymous) @ elm.min.js?id=0111ad60:1
xn @ elm.min.js?id=0111ad60:1
(anonymous) @ elm.min.js?id=0111ad60:1
(anonymous) @ elm.min.js?id=0111ad60:1
XMLHttpRequest.send
b @ elm.min.js?id=0111ad60:1
(anonymous) @ elm.min.js?id=0111ad60:1
xn @ elm.min.js?id=0111ad60:1
pn @ elm.min.js?id=0111ad60:1
(anonymous) @ elm.min.js?id=0111ad60:1

Steps to Reproduce

  1. Be using concourse 8.2.0
  2. Set a pipeline with a resource without an icon, such as
---
resources:
- name: concourse
  type: git
  source:
    uri: https://github.com/concourse/concourse

jobs:
- name: does-not-render
  plan:
  - get: concourse
  1. Load it in the web interface and observe it not render

Expected Results

I expected the existing pipelines without icons to continue to render

Actual Results

They did not

Web Node(s) configuration

No response

Worker(s) configuration

No response

Concourse Version

8.2.0

Browser (if applicable)

Chrome

Did this use to work?

Yes, on all previous versions

Activity

  1. selzoc commented on May 11, 2026

    @selzoc
    ContributorAuthor

    Based on my limited understanding, I think a guard in the addIcon function would work

    export function addIcon(iconName, nodeId) {
      if (!iconName) {
        return;
      }
    ...
    

    I don't fully understand how this worked before, so I won't open a PR, but hopefully it's not too bad to fix 😄 .

    As a workaround, you can assign icons to all your resources.

  2. jghiloni commented on May 12, 2026

    @jghiloni
    Contributor

    eek! i'll look into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions