fix: ensure device list is refreshed after adding a new device
This commit is contained in:
@@ -70,6 +70,7 @@ export async function addDevice({
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
revalidatePath("/devices");
|
||||||
return handleApiResponse<SingleDevice>(response, "addDevice");
|
return handleApiResponse<SingleDevice>(response, "addDevice");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user