Thread
#multiplatform
    m

    Michal Janos

    1 year ago
    Hi I have problem with multiplatform for JS NPM Kotlin Code:
    internal fun preparePartiesDataCalculation(
        partiesCalculationEntryData: List<PartyCalculationEntryData>,
        product: Product,
        ridersMap: Map<String, RiderParametersAndCore>
    ): List<PartyPreparedForCalculation> {
    
        return partiesCalculationEntryData.map { party ->
            val professionsWithInternalParameters = party.professions.map {
                MaxProfessionRiskGroupParameters(parameters = getInternalProfessionParams(it.parameters))
            }
    Generates problem in JS use Where partiesCalculationEntryData is as JS array
    Same code is working in use with JVM