Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-e committed Sep 27, 2023
1 parent 4dc1cdb commit fa63263
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ fun List<KSAnnotated>.functionsWithMultiPreviewAnnotation(
}
}

// The same function declaration can show up multiple times, so ensure the values are merged together
val mergedConfigs = mutableMapOf<KSFunctionDeclaration, List<ComposePreviewSnapshotConfig>>()
uniqueSnapshotConfigs.forEach {
mergedConfigs.putOrAppend(it.first, it.second)
Expand Down

0 comments on commit fa63263

Please sign in to comment.