FrontStage error
#7594
-
Beta Was this translation helpful? Give feedback.
Answered by
Paolo-lab
Jan 24, 2025
Replies: 1 comment 8 replies
-
Hi @Paolo-lab. It doesn't look like the error is related to the piece of code you're showing. The error is caused by a unified selection viewport component being passed an import { ViewportComponent } from "@itwin/imodel-components-react";
import { viewWithUnifiedSelection } from "@itwin/presentation-components";
const UnifiedSelectionViewport = viewWithUnifiedSelection(ViewportComponent);
function MyComponent() {
// `imodel` is undefined here:
return <UnifiedSelectionViewport imodel={imodel} />;
} |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello good morning, I am continuing to search for the problem on this specific model
in the getFirstViewDefinitionId, I removed the queryDefaultViewId which for some reason (unknown to me) returns an incorrect defaultViewId, and everything seems to work
Thank you for the support and I apologize to you if I have created difficulties
Thank you