CivicDataLab / CivicDataLab/DataSpaceFrontend

[Bug] JS SyntaxError 'appendChild: missing ) after argument list' on every model editor page load

Open
#409 0 comments 0 reactions 1 assignee View on GitHub

@Abhishekfm is already working on this.

Since Jun 22, 2026.

bug
Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
1d 7h
Merged PRs (30d)
19

Description

Summary

A JavaScript SyntaxError fires on every page load of the AI model editor on CivicDataSpace:

SyntaxError: Failed to execute 'appendChild' on 'Node': missing ) after argument list
    at p (/_next/static/chunks/549-3cc5a4b2f9dfcb5c.js:10:114337)
    at /_next/static/chunks/549-3cc5a4b2f9dfcb5c.js:10:115151
    at o1 (/_next/static/chunks/4bd1b696-faa427047ccc1678.js:1:89299)
    at uE ...

The error fires twice per page load and propagates through the React fiber renderer.

Impact

  • May cause partial render failures of specific UI sub-trees
  • Confirmed present on both the AI models list page and the model editor wizard
  • Likely caused by a template literal or dangerouslySetInnerHTML block with an unescaped parenthesis in the unminified source

Steps to Reproduce

  1. Open /dashboard/organization/civicdatalab/aimodels
  2. Click "Add New AI Model"
  3. Open browser DevTools → Console
  4. Observe two SyntaxError entries on page load

Fix Recommendation

Locate the p() function at offset 114337 in 549-3cc5a4b2f9dfcb5c.js in the unminified source. Likely a dynamic innerHTML or template literal with a malformed closing parenthesis. Fix and rebuild.

Environment

  • URL: https://dev.civicdataspace.in/dashboard/organization/civicdatalab/aimodels/edit/{id}/details
  • Discovered: 2026-06-22 via QA audit
  • Report ref: CDS-001

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.