diff --git a/.changeset/gorgeous-cars-wait.md b/.changeset/gorgeous-cars-wait.md new file mode 100644 index 000000000..79e0daa03 --- /dev/null +++ b/.changeset/gorgeous-cars-wait.md @@ -0,0 +1,5 @@ +--- +"@hyperdx/app": patch +--- + +Fix threshold on alerts not visible, fix sessions page overflow bug diff --git a/packages/app/src/DBSearchPageAlertModal.tsx b/packages/app/src/DBSearchPageAlertModal.tsx index 39e7208b7..11e15e835 100644 --- a/packages/app/src/DBSearchPageAlertModal.tsx +++ b/packages/app/src/DBSearchPageAlertModal.tsx @@ -109,7 +109,6 @@ const AlertForm = ({ const interval = useWatch({ control, name: 'interval' }); const groupByValue = useWatch({ control, name: 'groupBy' }); const threshold = useWatch({ control, name: 'threshold' }); - const thresholdTypeValue = useWatch({ control, name: 'thresholdType' }); return (
@@ -202,7 +201,7 @@ const AlertForm = ({ interval={interval} groupBy={groupByValue} threshold={threshold} - thresholdType={thresholdTypeValue} + thresholdType={thresholdType} /> )} diff --git a/packages/app/src/SessionsPage.tsx b/packages/app/src/SessionsPage.tsx index 7a3983bfc..7b75be8b8 100644 --- a/packages/app/src/SessionsPage.tsx +++ b/packages/app/src/SessionsPage.tsx @@ -417,12 +417,7 @@ export default function SessionsPage() { return false; }} > - + ( - <> - {threshold != null && thresholdType === 'below' && ( +}) => { + if (threshold != null && thresholdType === 'below') { + return ( - )} - {threshold != null && thresholdType === 'above' && ( + ); + } + if (threshold != null && thresholdType === 'above') { + return ( - )} - {threshold != null && ( + ); + } + if (threshold != null) { + return ( - )} - -); + ); + } + return null; +};