removed lodash
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script>
|
||||
import {afterUpdate, getContext, onMount} from "svelte";
|
||||
import {isEqual} from "lodash";
|
||||
import axios from "axios";
|
||||
import EditHeader from "./header/EditHeader.svelte"
|
||||
import FilePreview from "./FilePreview.svelte"
|
||||
@@ -10,6 +9,7 @@
|
||||
import Info from "./Info.svelte"
|
||||
import ErrorAlert from "../common/ErrorAlert.svelte"
|
||||
import Title from "./header/Title.svelte";
|
||||
import {hasDataChanged} from "./editor.js";
|
||||
|
||||
const channel = getContext("channel");
|
||||
|
||||
@@ -74,10 +74,7 @@
|
||||
}
|
||||
|
||||
function checkUnsavedData() {
|
||||
if (isCreateMode) {
|
||||
return false;
|
||||
}
|
||||
return !isEqual(originalContent, {
|
||||
return hasDataChanged(isCreateMode,originalContent,{
|
||||
data: record.data,
|
||||
schema: record.schema,
|
||||
status: record.status,
|
||||
|
||||
Reference in New Issue
Block a user