Set default value for markdown preview and improve error for collab

This commit is contained in:
thiloho
2024-09-27 19:31:43 +02:00
parent d57753811c
commit 8ebe09a0d4
4 changed files with 24 additions and 5 deletions

View File

@@ -66,3 +66,9 @@
</form>
</Modal>
</section>
<style>
form[action="?/logout"] > button {
max-inline-size: fit-content;
}
</style>

View File

@@ -41,6 +41,10 @@ export const actions: Actions = {
)
).data;
if (!user) {
return { success: false, message: "Specified user could not be found" };
}
return await apiRequest(fetch, `${API_BASE_PREFIX}/collab`, "POST", {
body: {
website_id: params.websiteId,