removed lodash

This commit is contained in:
2024-10-10 16:44:08 +03:00
parent 986d3420cb
commit f949852c1a
13 changed files with 1164 additions and 714 deletions
+3 -2
View File
@@ -2,11 +2,12 @@
import {friendlyDate} from "../../helpers";
import Avatar from "../account/Avatar.svelte";
import {usernameById} from "../account/users";
import {isEqual} from "lodash";
import Icon from "../common/Icon.svelte";
import RevisionCell from "./revisions/RevisionCell.svelte";
import {getContext} from "svelte";
import RevisionEdgeRow from "./revisions/RevisionEdgeRow.svelte";
import axios from "axios";
import {hasDataChanged} from "./editor.js";
const channel = getContext("channel");
export let record;
@@ -60,7 +61,7 @@
selectedRevision = revision;
fieldsWithDiff = schema.fields.filter((f) => {
return !isEqual(selectedRevision.data[f.name], record.data[f.name]);
return hasDataChanged(false,selectedRevision.data[f.name], record.data[f.name]);
});
getEdgesByField(fieldsWithDiff, revision)
revisionSection.scrollIntoView();