mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-06 15:03:26 +00:00
Fixed inline toggle changes when viewing the list of hosts in table
This commit is contained in:
@@ -16,7 +16,6 @@ const InlineToggle = ({
|
|||||||
|
|
||||||
// Check if value actually changed
|
// Check if value actually changed
|
||||||
if (newValue === value) {
|
if (newValue === value) {
|
||||||
setIsEditing(false);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,7 +24,6 @@ const InlineToggle = ({
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await onSave(newValue);
|
await onSave(newValue);
|
||||||
setIsEditing(false);
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setError(err.message || "Failed to save");
|
setError(err.message || "Failed to save");
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user