Skip to content

Commit c498a09

Browse files
author
hackermd
committed
Fix usage example in README
The filter operation is required to remove "undefined".
1 parent eb6658d commit c498a09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ client.searchForInstances(searchInstanceOptions).then((instances) => {
6868
}
6969
return(Promise.all(promises));
7070
}).then(metadata => {
71+
metadata = metadata.filter(m => m);
7172
const viewer = new DICOMMicroscopyViewer.api.DICOMMicroscopyViewer({
7273
client,
7374
metadata

0 commit comments

Comments
 (0)