🔧 Make the changed values optional

This commit is contained in:
ajnart
2022-06-07 07:20:44 +02:00
parent 838f196937
commit 1a642ad7b4
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ export default function TitleChanger() {
},
});
const saveChanges = (values: { title: string; logo: string; favicon: string }) => {
const saveChanges = (values: { title?: string; logo?: string; favicon?: string }) => {
setConfig({
...config,
settings: {

View File

@@ -2,9 +2,9 @@ import { OptionValues } from '../components/modules/modules';
export interface Settings {
searchUrl: string;
title: string;
logo: string;
favicon: string;
title?: string;
logo?: string;
favicon?: string;
}
export interface Config {