Skip to content

Commit e851785

Browse files
authored
fix: Fixed empty stream loading state (#407)
1 parent 04a23d6 commit e851785

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/hooks/useGetStreamMetadata.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type MetaData = {
1515

1616
// until dedicated endpoint been provided - fetch one by one
1717
export const useGetStreamMetadata = () => {
18-
const [isLoading, setLoading] = useState<boolean>(true);
18+
const [isLoading, setLoading] = useState<boolean>(false);
1919
const [error, setError] = useState<boolean>(false);
2020
const [metaData, setMetadata] = useState<MetaData | null>(null);
2121
const [userRoles] = useAppStore((store) => store.userRoles);

tests/home.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ test.describe('Home Page', () => {
102102
await page.goto(`${TEST_URL}`);
103103
await expect(searchInput).toBeVisible();
104104
await searchInput.fill('PlaywrightStream');
105-
await expect(page.locator('text=No Stream found on this account')).toBeVisible();
106105
await expect(page.locator('text=All Streams (0)')).toBeVisible();
107106
});
108107
});

0 commit comments

Comments
 (0)