fix(web): fix personalities page dark mode theming and wire to API (#540)
Some checks failed
ci/woodpecker/push/web Pipeline failed
Some checks failed
ci/woodpecker/push/web Pipeline failed
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #540.
This commit is contained in:
@@ -73,7 +73,8 @@ export async function updatePersonality(
|
||||
|
||||
/**
|
||||
* Delete a personality
|
||||
* The DELETE endpoint returns 204 No Content on success.
|
||||
*/
|
||||
export async function deletePersonality(id: string): Promise<Record<string, never>> {
|
||||
return apiDelete<Record<string, never>>(`/api/personalities/${id}`);
|
||||
export async function deletePersonality(id: string): Promise<void> {
|
||||
await apiDelete<undefined>(`/api/personalities/${id}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user