perf: extend fast-deep-equal to remaining call sites (#23845)
This commit is contained in:
1 parent
0d10b946f5
commit
51cd43229c
5 files changed
+15
-10
No files matched your search
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { marked } from 'marked';
|
||||
import DOMPurify from 'dompurify';
|
||||
import equal from 'fast-deep-equal';
|
||||
|
||||
marked.use({
|
||||
breaks: true,
|
||||
@@ -1257,7 +1258,7 @@
|
||||
}
|
||||
|
||||
if (json) {
|
||||
if (JSON.stringify(value) !== JSON.stringify(jsonValue)) {
|
||||
if (!equal(value, jsonValue)) {
|
||||
editor.commands.setContent(value);
|
||||
selectTemplate();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user