Style bits redone

This commit is contained in:
2024-04-13 15:56:43 +02:00
parent 106bf96a98
commit 2e02cd8870
2 changed files with 22 additions and 12 deletions

View File

@ -25,7 +25,9 @@ export function createForum(id, name){
* List post of a specified forum
*/
export async function getPostsOfForum(id){
PostsOfCurrentForum.value = await restGet("/forum/" + id);
if(id != null){
PostsOfCurrentForum.value = await restGet("/forum/" + id);
}
}
export function createPost(id, subject, content){