File tree 1 file changed +9
-4
lines changed
invert-report/src/jsMain/kotlin/com/squareup/invert/common/pages 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import com.squareup.invert.common.navigation.NavRouteRepo
11
11
import com.squareup.invert.common.navigation.routes.BaseNavRoute
12
12
import com.squareup.invert.common.utils.FormattingUtils.dateDisplayStr
13
13
import com.squareup.invert.common.utils.FormattingUtils.formatDecimalSeparator
14
+ import com.squareup.invert.models.StatDataType
14
15
import kotlinx.coroutines.flow.map
15
16
import org.jetbrains.compose.web.attributes.ATarget
16
17
import org.jetbrains.compose.web.attributes.target
@@ -157,10 +158,14 @@ fun HomeComposable(
157
158
A (href = " #" , {
158
159
onClick {
159
160
navRouteRepo.updateNavRoute(
160
- StatDetailNavRoute (
161
- pluginIds = listOf (),
162
- statKeys = listOf (statTotal.key.key)
163
- )
161
+ if (statTotal.key.dataType == StatDataType .CODE_REFERENCES ) {
162
+ CodeReferencesNavRoute (statKey = statTotal.key.key)
163
+ } else {
164
+ StatDetailNavRoute (
165
+ pluginIds = listOf (),
166
+ statKeys = listOf (statTotal.key.key)
167
+ )
168
+ }
164
169
)
165
170
}
166
171
}) {
You can’t perform that action at this time.
0 commit comments