Skip to content

Commit

Permalink
address #412
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghoonio committed Dec 11, 2024
1 parent 533be4c commit c3ca68d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions web/src/pages/Browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,6 @@ export function Browse() {

const noSchemasInDatabase = schemas?.count === 0;

if (isLoading) {
return (
<PageLayout title="Browse">
<div className="w-100">
<SchemasPagePlaceholder />
</div>
</PageLayout>
);
}

if (error) {
return (
<PageLayout title="Browse">
Expand Down Expand Up @@ -205,7 +195,9 @@ export function Browse() {
setCreateModalOpen={setShowCreateSchemaModal}
/>
<div className="d-flex flex-col align-items-center">
{noSchemasInDatabase ? (
{isLoading ? (
<SchemasPagePlaceholder />
) : noSchemasInDatabase ? (
<NoSchemas />
) : (
<div className="schemas-grid w-100 py-2">
Expand Down

0 comments on commit c3ca68d

Please sign in to comment.