This commit is contained in:
Alex Holliday
2024-12-12 12:42:32 +08:00
parent 3840b3ec2d
commit e33091f182

View File

@@ -185,10 +185,6 @@ const CreateInfrastructureMonitor = () => {
});
};
const handleBlur = (event) => {
console.log("handleBlur", event);
};
const handleNotifications = (event, type) => {
const { value } = event.target;
let notifications = [...infrastructureMonitor.notifications];
@@ -340,7 +336,6 @@ const CreateInfrastructureMonitor = () => {
)}
value={user?.email}
onChange={(event) => handleNotifications(event, "email")}
onBlur={handleBlur}
/>
</Stack>
</ConfigBox>
@@ -372,7 +367,6 @@ const CreateInfrastructureMonitor = () => {
fieldName={METRIC_PREFIX + metric}
fieldValue={infrastructureMonitor[METRIC_PREFIX + metric]}
onFieldChange={handleChange}
onFieldBlur={handleBlur}
alertUnit={metric == "temperature" ? "°C" : "%"}
/>
);
@@ -404,7 +398,7 @@ const CreateInfrastructureMonitor = () => {
label="Check frequency"
value={infrastructureMonitor.interval || 15}
onChange={handleChange}
onBlur={handleBlur}
onBlur={}
items={SELECT_VALUES}
/>
</Stack>