Fixed inline toggle changes when viewing the list of hosts in table

This commit is contained in:
Muhammad Ibrahim
2025-09-26 09:09:02 +01:00
parent 40a9003e6f
commit a76a722364

View File

@@ -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 {