Skip to content

Commit

Permalink
add empty state if no partitions available to launch in backfill preview
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Dec 12, 2024
1 parent 007fe7d commit 0e409bf
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const BackfillPreviewModal = ({
skip: !isOpen,
},
);
const {data} = queryResult;
const {data, loading} = queryResult;

const partitionsByAssetToken = useMemo(() => {
return Object.fromEntries(
Expand Down Expand Up @@ -108,7 +108,11 @@ export const BackfillPreviewModal = ({
{partitions ? (
<TargetPartitionsDisplay targetPartitions={partitions} />
) : (
<Spinner purpose="body-text" />
loading ? (
<Spinner purpose="body-text" />
) : (
"No partitions available to materialize"
)
)}
</RowCell>
</RowGrid>
Expand Down

0 comments on commit 0e409bf

Please sign in to comment.