mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🔧 Make the changed values optional
This commit is contained in:
@@ -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({
|
setConfig({
|
||||||
...config,
|
...config,
|
||||||
settings: {
|
settings: {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import { OptionValues } from '../components/modules/modules';
|
|||||||
|
|
||||||
export interface Settings {
|
export interface Settings {
|
||||||
searchUrl: string;
|
searchUrl: string;
|
||||||
title: string;
|
title?: string;
|
||||||
logo: string;
|
logo?: string;
|
||||||
favicon: string;
|
favicon?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Config {
|
export interface Config {
|
||||||
|
|||||||
Reference in New Issue
Block a user