Skip to content

Commit

Permalink
fix: clearModel
Browse files Browse the repository at this point in the history
  • Loading branch information
guhaomine committed Feb 26, 2024
1 parent 6a7748c commit 55974e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/image-tool/src/businessNew/common/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ export default class Editor extends BaseEditor {
if (!model || !model.code || model.state !== LoadStatus.COMPLETE) return;
const result = this.dataManager.hasModelResult(model.code, frame);
if (result) {
// api.clearModel([+frame.id], model.recordId);
this.addModelData(model.code);
api.clearModel([+frame.id], model.recordId);
} else {
this.runModel();
}
Expand Down

0 comments on commit 55974e1

Please sign in to comment.