diff --git a/snapshots/snapshots-processor/src/main/kotlin/com/emergetools/snapshots/processor/utils/PreviewFinderUtils.kt b/snapshots/snapshots-processor/src/main/kotlin/com/emergetools/snapshots/processor/utils/PreviewFinderUtils.kt index 4f68f711..473028e4 100644 --- a/snapshots/snapshots-processor/src/main/kotlin/com/emergetools/snapshots/processor/utils/PreviewFinderUtils.kt +++ b/snapshots/snapshots-processor/src/main/kotlin/com/emergetools/snapshots/processor/utils/PreviewFinderUtils.kt @@ -41,6 +41,7 @@ fun List.functionsWithMultiPreviewAnnotation( } } + // The same function declaration can show up multiple times, so ensure the values are merged together val mergedConfigs = mutableMapOf>() uniqueSnapshotConfigs.forEach { mergedConfigs.putOrAppend(it.first, it.second)