mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +01:00
Error handling for queries.
This commit is contained in:
parent
cebd3fd924
commit
cb48acde55
3 changed files with 11 additions and 8 deletions
|
|
@ -4,7 +4,7 @@ import { formatNumber } from '../../lib/format';
|
|||
import styles from './MetricCard.module.css';
|
||||
|
||||
const MetricCard = ({ value = 0, label, format = formatNumber }) => {
|
||||
const props = useSpring({ x: value, from: { x: 0 } });
|
||||
const props = useSpring({ x: Number(value) || 0, from: { x: 0 } });
|
||||
|
||||
return (
|
||||
<div className={styles.card}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue