CivicDataLab / CivicDataLab/DataSpaceFrontend
[Bug] JS SyntaxError 'appendChild: missing ) after argument list' on every model editor page load
Open
@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
dangerouslySetInnerHTMLblock with an unescaped parenthesis in the unminified source
Steps to Reproduce
- Open
/dashboard/organization/civicdatalab/aimodels - Click "Add New AI Model"
- Open browser DevTools → Console
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.