Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(clubList): ignore spaces in empty description after processed with cleanHTML #520

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pages/cas/clubs/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ let hasDescriptionC = false
let Description_C = ''

if (filteredClubs[0] && filteredClubs[0].groups[0].C_DescriptionC) {
Description_C = cleanHTML(filteredClubs[0].groups[0].C_DescriptionC)
hasDescriptionC = true
const tempDescription = cleanHTML(filteredClubs[0].groups[0].C_DescriptionC)
if (tempDescription.trim() !== '') {
Description_C = tempDescription
hasDescriptionC = true
}
}

// This page requires login
Expand Down Expand Up @@ -71,7 +74,7 @@ definePageMeta({
</Card>
<Card class="xl:w-1/4 w-full xl:ml-2">
<CardHeader>
<CardTitle class="flex items-center gap-x-1">
<CardTitle class="flex items-center h-min gap-x-1">
社团属性
</CardTitle>
<CardDescription class="flex items-center">
Expand Down