mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🐛 Config Provider and context hook in edit service modal
This commit is contained in:
@@ -61,8 +61,6 @@ export const EditServiceModal = ({
|
||||
});
|
||||
|
||||
const onSubmit = (values: ServiceType) => {
|
||||
console.log(values);
|
||||
|
||||
if (!configName) {
|
||||
return;
|
||||
}
|
||||
@@ -71,6 +69,9 @@ export const EditServiceModal = ({
|
||||
...previousConfig,
|
||||
services: [...previousConfig.services.filter((x) => x.id !== form.values.id), form.values],
|
||||
}));
|
||||
|
||||
// also close the parent modal
|
||||
context.closeAll();
|
||||
};
|
||||
|
||||
const [activeTab, setActiveTab] = useState<EditServiceModalTab>('general');
|
||||
|
||||
Reference in New Issue
Block a user