fix(frontend): make collection summary optional in editing (#3304)

Forgot to fix it here too in #3292.
Reported by @falseresync
This commit is contained in:
Erb3 2025-02-25 18:53:29 +01:00 committed by GitHub
parent b3a664e0d4
commit 2c2a13b587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -365,29 +365,29 @@
<script setup> <script setup>
import { import {
BoxIcon,
CalendarIcon, CalendarIcon,
EditIcon, EditIcon,
XIcon,
SaveIcon,
UploadIcon,
TrashIcon,
LinkIcon,
LockIcon,
GridIcon, GridIcon,
ImageIcon, ImageIcon,
ListIcon,
UpdatedIcon,
LibraryIcon, LibraryIcon,
BoxIcon, LinkIcon,
ListIcon,
LockIcon,
SaveIcon,
TrashIcon,
UpdatedIcon,
UploadIcon,
XIcon,
} from "@modrinth/assets"; } from "@modrinth/assets";
import { import {
PopoutMenu,
FileInput,
DropdownSelect,
Avatar, Avatar,
Button, Button,
commonMessages, commonMessages,
ConfirmModal, ConfirmModal,
DropdownSelect,
FileInput,
PopoutMenu,
} from "@modrinth/ui"; } from "@modrinth/ui";
import { isAdmin } from "@modrinth/utils"; import { isAdmin } from "@modrinth/utils";
@ -651,7 +651,7 @@ async function saveChanges() {
method: "PATCH", method: "PATCH",
body: { body: {
name: name.value, name: name.value,
description: summary.value, description: summary.value || null,
status: visibility.value, status: visibility.value,
new_projects: newProjectIds, new_projects: newProjectIds,
}, },