Skip to content

Commit 09f5e95

Browse files
committed
docs: remove outdated comment
1 parent 367906d commit 09f5e95

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

site/src/modules/resources/AgentMetadata.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ export const AgentMetadata: FC<AgentMetadataProps> = ({
5151
}) => {
5252
const [metadata, setMetadata] = useState<WorkspaceAgentMetadata[]>();
5353
useEffect(() => {
54-
// Even though we're using storybookMetadata as the initial value of the
55-
// `metadata` state, we can't sync on `metadata` itself. If we did, the
56-
// moment we update the state with a new event, we would re-trigger the
57-
// effect and immediately destroy the connection
5854
if (storybookMetadata !== undefined) {
5955
return;
6056
}

0 commit comments

Comments
 (0)