Skip to content

Commit a1f1196

Browse files
authored
Test Data Source: Allow inputs to render 0 values (#107578)
1 parent f2ffdd3 commit a1f1196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/app/plugins/datasource/grafana-testdata-datasource/components/RandomWalkEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const RandomWalkEditor = ({ onChange, query }: EditorProps) => {
4747
id={`randomWalk-${id}-${query.refId}`}
4848
min={min}
4949
step={step}
50-
value={(query as any)[id as keyof TestDataDataQuery] || placeholder}
50+
value={(query as any)[id as keyof TestDataDataQuery] ?? placeholder}
5151
placeholder={placeholder}
5252
onChange={onChange}
5353
/>

0 commit comments

Comments
 (0)