Skip to content

Creating or Editing Most Promise/Evidence fields results in a application error. #86

Closed

Description

@thomas-hul

Describe the bug
When trying to create or edit certain promise/evidence fields an application error occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://www.buildcanada.com/en/admin/evidence
  2. Click on 'Create New' and then 'Manual Create'
  3. Select the dropdown menu for 'Source Type' and choose any option
  4. See error

Expected behavior
We should be able to edit and create new evidence or update promises without error.

Additional context
This seems to be an issue with the component structure thinking that there are node children that are not there. We get the following runtime error:

Unhandled Runtime Error
Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

This also seemingly happens with the fields while editing promises and perhaps creating them, I have not tested that yet.

Activity

  1. thomas-hul commented on Jun 11, 2025

    @thomas-hul
    ContributorAuthor

    I was able to get this working for the evidence portion by changing our Select tag. Seems like there is a mounting issue in that component. Cleaning them up as I go but may need reorganize how we do some of the component rendering in this Select.

    Test Evidence created: ID: 20250611_45_Manual_f443j7zid

    Leaving this open as there are other instances in creating promises or changing things were the same behaviour occurs.

  2. melkuo commented on Jun 26, 2025

    @melkuo
    Contributor

    Assuming this is fixed now due to the new backend/admin interface. Will re-open if I find that it's still an issue cc @xrendan

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions