From 85afba9015575289bf93052d10faca26c5122226 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Wed, 31 Jan 2024 18:23:34 -0400 Subject: [PATCH] Fixed sticky header example in docs --- .changeset/cyan-bulldogs-behave.md | 5 +++++ .../pages/examples/data-table-with-sticky-header-enabled.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/cyan-bulldogs-behave.md diff --git a/.changeset/cyan-bulldogs-behave.md b/.changeset/cyan-bulldogs-behave.md new file mode 100644 index 00000000000..47ca1790fce --- /dev/null +++ b/.changeset/cyan-bulldogs-behave.md @@ -0,0 +1,5 @@ +--- +'polaris.shopify.com': patch +--- + +Fixed sticky header example in docs diff --git a/polaris.shopify.com/pages/examples/data-table-with-sticky-header-enabled.tsx b/polaris.shopify.com/pages/examples/data-table-with-sticky-header-enabled.tsx index a304f36ad1a..5a7a9887f2a 100644 --- a/polaris.shopify.com/pages/examples/data-table-with-sticky-header-enabled.tsx +++ b/polaris.shopify.com/pages/examples/data-table-with-sticky-header-enabled.tsx @@ -3,7 +3,7 @@ import {useState, useCallback} from 'react'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; function FullDataTableExample() { - const [sortedRows, setSortedRows] = useState([]); + const [sortedRows, setSortedRows] = useState(null); const initiallySortedRows: TableData[][] = [ [