Skip to content

Commit 8746042

Browse files
committed
Only intervals with int_id are clickable
1 parent bf62474 commit 8746042

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/timescale/src/components/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function IntervalBox(props: {
4545
return h(SizeAwareLabel, {
4646
key: interval.oid,
4747
style,
48-
className: "interval-box",
48+
className: "interval-box " + (onClick && interval.int_id != null ? "clickable" : ""),
4949
labelClassName: "interval-label",
5050
label: labelText,
5151
onVisibilityChanged(viz) {

packages/timescale/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ function Timescale(props: TimescaleProps) {
8888
const className = classNames(
8989
orientation,
9090
"increase-" + increaseDirection,
91-
onClick ? "clickable" : null,
9291
);
9392
const length = absoluteAgeScale ? (l ?? 6000) : null;
9493

0 commit comments

Comments
 (0)