Skip to content

Commit 60b4d68

Browse files
committed
use statistic instead of period to determine entity type. (period may be undefined when using auto-period)
1 parent 7a9bebe commit 60b4d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function isEntityIdAttrConfig(
117117
export function isEntityIdStatisticsConfig(
118118
entityConfig: EntityIdConfig
119119
): entityConfig is EntityIdStatisticsConfig {
120-
return !!entityConfig["period"];
120+
return !!entityConfig["statistic"];
121121
}
122122

123123
export type Timestamp = number;

0 commit comments

Comments
 (0)