Skip to content

Commit

Permalink
fix: Fixed empty stream loading state (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 authored Jan 6, 2025
1 parent 04a23d6 commit e851785
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useGetStreamMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type MetaData = {

// until dedicated endpoint been provided - fetch one by one
export const useGetStreamMetadata = () => {
const [isLoading, setLoading] = useState<boolean>(true);
const [isLoading, setLoading] = useState<boolean>(false);
const [error, setError] = useState<boolean>(false);
const [metaData, setMetadata] = useState<MetaData | null>(null);
const [userRoles] = useAppStore((store) => store.userRoles);
Expand Down
1 change: 0 additions & 1 deletion tests/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ test.describe('Home Page', () => {
await page.goto(`${TEST_URL}`);
await expect(searchInput).toBeVisible();
await searchInput.fill('PlaywrightStream');
await expect(page.locator('text=No Stream found on this account')).toBeVisible();
await expect(page.locator('text=All Streams (0)')).toBeVisible();
});
});
Expand Down

0 comments on commit e851785

Please sign in to comment.