Skip to content

Commit

Permalink
limit to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
Timot05 committed Jun 5, 2024
1 parent 011d45f commit 69558d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/atopile/viewer/src/SchematicApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const AtopileSchematic = ({ viewBlockId, savePos, handleLoad }) => {
const fetchedNodes = await loadSchematicJsonAsDict();
const displayedNode = fetchedNodes[viewBlockId];

if (Object.keys(displayedNode['components']).length > 200) {
if (Object.keys(displayedNode['components']).length > 1000) {
setTooLarge(true);
return;
}
Expand Down Expand Up @@ -247,7 +247,7 @@ const AtopileSchematic = ({ viewBlockId, savePos, handleLoad }) => {
<div className="providerflow">
{tooLarge ? (
<div style={{ width: '100%', height: '50%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
<b>There are more than 200 components to display. Navigate to a different module.</b>
<b>There are more than 1000 components to display. Navigate to a different module.</b>
</div>
) : (
<ReactFlow
Expand Down

0 comments on commit 69558d7

Please sign in to comment.