Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit dce6ffd

Browse files
authored
fix: header and NoStreamView on empty stream case (#379)
1 parent 7297616 commit dce6ffd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/hooks/useGetStreamMetadata.ts

Lines changed: 1 addition & 1 deletion
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);

src/pages/AccessManagement/Roles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import IconButton from '@/components/Button/IconButton';
1010
import { useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
1111

1212
const navigateToDocs = () => {
13-
return window.open('https://www.parseable.io/docs/rbac', '_blank');
13+
return window.open('https://www.parseable.com/docs/server/api/rbac', '_blank');
1414
};
1515

1616
const renderDocsIcon = () => <IconBook2 stroke={1.5} size="1rem" />;

src/pages/Home/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const Home: FC = () => {
126126

127127
return (
128128
<>
129-
{!shouldDisplayEmptyPlaceholder && (
129+
{((Array.isArray(userSpecificStreams) && userSpecificStreams.length > 0) || searchTerm) && (
130130
<Stack
131131
style={{
132132
padding: '1rem',
@@ -187,7 +187,7 @@ const Home: FC = () => {
187187
<NoStreamsView
188188
hasCreateStreamAccess={hasCreateStreamAccess}
189189
openCreateStreamModal={openCreateStreamModal}
190-
shouldHideFooter
190+
shouldHideFooter={Array.isArray(userSpecificStreams) && userSpecificStreams.length > 0}
191191
/>
192192
) : (
193193
<Group style={{ margin: '0 1rem', gap: '1rem' }}>

0 commit comments

Comments
 (0)