Skip to content

Commit

Permalink
Merge pull request #8891 from wibetter/master
Browse files Browse the repository at this point in the history
fix(amis-editor): 渲染错误拦截不展示schema
  • Loading branch information
wibetter committed Nov 27, 2023
2 parents ce53af6 + 9187f8b commit 7d28608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/amis-editor-core/src/component/factory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ export function makeWrapper(
value={this.editorNode || (this.context as any)}
>
<ErrorBoundary
customErrorMsg={`拦截到${
info.type
}渲染错误,当前组件信息: ${JSON.stringify(this.props.$schema)}`}
customErrorMsg={`拦截到${info.type}渲染错误`}
fallback={() => {
return (
<div className="renderer-error-boundary">
Expand Down
2 changes: 1 addition & 1 deletion packages/amis/src/renderers/Form/StaticHoc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function supportStatic<T extends FormControlProps>() {

return (
<ErrorBoundary
customErrorMsg={`拦截到${props.$schema.type}渲染错误,当前组件schema: ${props.$schema}`}
customErrorMsg={`拦截到${props.$schema.type}渲染错误`}
fallback={() => {
return (
<div className="renderer-error-boundary">
Expand Down

0 comments on commit 7d28608

Please sign in to comment.