diff --git a/app/packages/operators/src/OperatorPlacements.tsx b/app/packages/operators/src/OperatorPlacements.tsx index 8f3eecdee2..04bebfd7e6 100644 --- a/app/packages/operators/src/OperatorPlacements.tsx +++ b/app/packages/operators/src/OperatorPlacements.tsx @@ -24,7 +24,11 @@ export function OperatorPlacementWithErrorBoundary( props: OperatorPlacementProps ) { return ( - null}> + { + return ; + }} + > ); @@ -44,6 +48,28 @@ function OperatorPlacements(props: OperatorPlacementsProps) { )); } +function PlacementError(props) { + const { adaptiveMenuItemProps, error, operator } = props; + console.error(error); + const operatorURI = operator?.uri; + const postfix = operatorURI ? ` for ${operatorURI}` : ""; + return ( + theme.palette.error.main } }} + /> + } + title={error?.message || `Failed to load placement${postfix}`} + onClick={() => { + // do nothing + }} + /> + ); +} + export default withSuspense(OperatorPlacements, () => null); const componentByView = {