Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

[HELP - BUG] Custom Data source Viewer not rendering - black blank screen

Open highoncarbs opened this issue 9 months ago • 3 comments

Describe the Bug

I wanted the viewer to be accessible like this /vewier/scan?id=6sdasd838878sad

So I created a new datasource in /extensions/default/src/ScanIdDataSource/index.js , which is basically a clone of DicomJSONDataSource updated to fetch the id param and query an API, this returns dicomJSON.

When I go to this route, the console prints the statements ScanIdDataSource/index.js, but nothing renders on the screen and no console errors.

Steps to Reproduce

This is the script /extensions/default/src/ScanIdDataSource/index.js that is printing the console logs image

Added to datasources image

Browser View image

Console image

The current behavior

Blank Viewer

The expected behavior

It should load the scans in the Viewer

OS

Windows 11

Node version

20

Browser

Latest Chrome and edge

highoncarbs avatar May 23 '24 11:05 highoncarbs