Skip to content

Commit

Permalink
fix: Fixed the header and NoStreamView on empty stream case
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 committed Nov 18, 2024
1 parent 7297616 commit 325fe60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 deletions src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Home: FC = () => {

return (
<>
{!shouldDisplayEmptyPlaceholder && (
{((Array.isArray(userSpecificStreams) && userSpecificStreams.length > 0) || searchTerm) && (
<Stack
style={{
padding: '1rem',
Expand Down Expand Up @@ -187,7 +187,7 @@ const Home: FC = () => {
<NoStreamsView
hasCreateStreamAccess={hasCreateStreamAccess}
openCreateStreamModal={openCreateStreamModal}
shouldHideFooter
shouldHideFooter={Array.isArray(userSpecificStreams) && userSpecificStreams.length > 0}
/>
) : (
<Group style={{ margin: '0 1rem', gap: '1rem' }}>
Expand Down

0 comments on commit 325fe60

Please sign in to comment.