Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ecto/muni
/ findModelById
Function
findModelById
web/src/components/viewer/ModelCatalog.ts:306–313 ·
view source on GitHub ↗
(id: string)
Source
from the content-addressed store, hash-verified
304
];
305
306
export
function
findModelById(id: string): ModelInfo | undefined {
307
for
(
const
section of models) {
308
for
(
const
item of section.items) {
309
if
(item.id === id)
return
item;
310
}
311
}
312
return
undefined;
313
}
Callers
1
ViewerPage
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected