mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
Fix hydration errors across a variety of pages (#1556)
Small PR to resolve all the hydration errors on a few pages
This commit is contained in:
parent
8213d69b8e
commit
e9650e8651
5 changed files with 14 additions and 9 deletions
5
.changeset/blue-drinks-dress.md
Normal file
5
.changeset/blue-drinks-dress.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
Fix hydration errors across a variety of pages
|
||||
|
|
@ -293,8 +293,8 @@ export const Table = ({
|
|||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
{tableBottom && tableBottom}
|
||||
</table>
|
||||
{tableBottom}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ function SessionCardList({
|
|||
const defaultTimeRange = parseTimeQuery('Past 1h', false) as [Date, Date];
|
||||
const appliedConfigMap = {
|
||||
sessionSource: parseAsString,
|
||||
where: parseAsString,
|
||||
where: parseAsString.withDefault(''),
|
||||
whereLanguage: parseAsStringEnum<'sql' | 'lucene'>(['sql', 'lucene']),
|
||||
};
|
||||
export default function SessionsPage() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useCallback, useState } from 'react';
|
||||
import { Fragment, useCallback, useState } from 'react';
|
||||
import Head from 'next/head';
|
||||
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
||||
import { SubmitHandler, useForm, useWatch } from 'react-hook-form';
|
||||
|
|
@ -162,11 +162,11 @@ function SourcesSection() {
|
|||
<Card variant="muted">
|
||||
<Stack>
|
||||
{sources?.map(s => (
|
||||
<>
|
||||
<Flex key={s.id} justify="space-between" align="center">
|
||||
<Fragment key={s.id}>
|
||||
<Flex justify="space-between" align="center">
|
||||
<div>
|
||||
<Text>{s.name}</Text>
|
||||
<Text size="xxs" c="dimmed" mt="xs">
|
||||
<Text size="xxs" c="dimmed" mt="xs" component="div">
|
||||
<Group gap="xs">
|
||||
{capitalizeFirstLetter(s.kind)}
|
||||
<Group gap={2}>
|
||||
|
|
@ -216,7 +216,7 @@ function SourcesSection() {
|
|||
/>
|
||||
)}
|
||||
<Divider />
|
||||
</>
|
||||
</Fragment>
|
||||
))}
|
||||
{!IS_LOCAL_MODE && isCreatingSource && (
|
||||
<TableSourceForm
|
||||
|
|
|
|||
|
|
@ -1229,7 +1229,7 @@ const DBSearchPageFiltersComponent = ({
|
|||
withArrow
|
||||
label="Denoise results will visually remove events matching common event patterns from the results table."
|
||||
>
|
||||
<Text size="xs" mt="-2px">
|
||||
<Text size="xs" mt="-2px" component="div">
|
||||
<Group gap={2}>
|
||||
<IconShadow
|
||||
size={14}
|
||||
|
|
@ -1258,7 +1258,7 @@ const DBSearchPageFiltersComponent = ({
|
|||
withArrow
|
||||
label="Only show root spans (spans with no parent span)."
|
||||
>
|
||||
<Text size="xs" mt="-2px">
|
||||
<Text size="xs" mt="-2px" component="div">
|
||||
<Group gap={2}>
|
||||
<IconSitemap
|
||||
size={14}
|
||||
|
|
|
|||
Loading…
Reference in a new issue