mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-13 02:18:16 +01:00
cleanups
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useState } from 'react';
|
||||
import apiClient from '../services/apiClient';
|
||||
import { mergePendingSettings, isFieldPending, hasPendingChanges, getCurrentValue } from '../utils/settingsPendingHelper';
|
||||
import { mergePendingSettings, isFieldPending, hasPendingChanges } from '../utils/settingsPendingHelper';
|
||||
|
||||
interface UseAdminSettingsOptions<T> {
|
||||
sectionName: string;
|
||||
@@ -152,7 +152,7 @@ function computeDelta(original: any, current: any): any {
|
||||
const delta: any = {};
|
||||
|
||||
for (const key in current) {
|
||||
if (!current.hasOwnProperty(key)) continue;
|
||||
if (!Object.prototype.hasOwnProperty.call(current, key)) continue;
|
||||
|
||||
const originalValue = original[key];
|
||||
const currentValue = current[key];
|
||||
|
||||
Reference in New Issue
Block a user