Skip to content

Commit 4b9ae83

Browse files
committed
Fix formatting of number 0 in remote object when description is not set
1 parent 35c4aea commit 4b9ae83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapter/objectPreview/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ function formatAsNumber(
479479
return param.unserializableValue;
480480
}
481481

482-
const value = param.value || +param.description;
482+
const value = param.value !== undefined ? param.value : +param.description;
483483
return format?.hex ? value.toString(16) : String(value);
484484
}
485485

0 commit comments

Comments
 (0)