fix: crud编辑器组件面板提示导致页面卡死问题修复 (#8779)

Co-authored-by: wanglinfang <wanglinfang@baidu.com>
This commit is contained in:
wanglinfang2014 2023-11-16 20:53:32 +08:00 committed by GitHub
parent 8e19fcea70
commit e124be1aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -686,7 +686,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
} else if (!props.api && isPureVariable(props.source)) {
const next = resolveVariableAndFilter(props.source, props.data, '| raw');
if (!this.lastData || this.lastData !== next) {
if (!this.lastData || !isEqual(this.lastData, next)) {
store.initFromScope(props.data, props.source, {
columns: store.columns ?? props.columns
});