Skip to content

Commit

Permalink
fix: compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Nov 8, 2024
1 parent 9f45103 commit 480a5a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewModelScope
import androidx.lifecycle.viewmodel.CreationExtras
import androidx.lifecycle.viewmodel.compose.viewModel
import androidx.paging.ExperimentalPagingApi
import app.cash.paging.compose.collectAsLazyPagingItems
Expand All @@ -45,7 +42,6 @@ import com.storyteller_f.shared.type.PrimaryKey
import io.ktor.client.*
import kotlinx.coroutines.launch
import org.jetbrains.compose.resources.stringResource
import kotlin.reflect.KClass

data class OnCommunityJoined(val communityId: PrimaryKey)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import com.mikepenz.markdown.compose.elements.MarkdownCodeFence
import com.mikepenz.markdown.m3.markdownColor
import com.mikepenz.markdown.m3.markdownTypography
import com.storyteller_f.a.app.common.StateView2
import com.storyteller_f.a.app.community.CommunityRefCell
import com.storyteller_f.a.app.common.viewModel
import com.storyteller_f.a.app.community.CommunityRefCell
import com.storyteller_f.a.app.compontents.ReactionRow
import com.storyteller_f.a.app.compontents.TextUnitToPx
import com.storyteller_f.a.app.compontents.UserIcon
Expand Down
2 changes: 1 addition & 1 deletion server/src/test/kotlin/CommunityTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class CommunityTest {
}
// 添加话题到子话题
kotlin.run {
val topicId = client.getCommunityTopics(communityId, 10).data.first().id
val topicId = client.getCommunityTopics(communityId, null, 10).data.first().id
val new = client.createNewTopic(ObjectType.TOPIC, topicId, "test").body<TopicInfo>()
assertEquals(ObjectType.COMMUNITY, new.rootType)
assertEquals(communityId, new.rootId)
Expand Down

0 comments on commit 480a5a6

Please sign in to comment.