Fix #19198: di fix custom property filter (#19531)

(cherry picked from commit eea4b65b801e2c0c06e9b17e81e16a519953d9ab)
This commit is contained in:
Mayur Singal 2025-01-27 15:54:41 +05:30 committed by OpenMetadata Release Bot
parent a47e3f8872
commit 7457c93b96

View File

@ -227,7 +227,7 @@ public class DataInsightsEntityEnricherProcessor
}
// Modify Custom Property key
Optional<Object> oCustomProperties = Optional.ofNullable(entityMap.remove("extension"));
Optional<Object> oCustomProperties = Optional.ofNullable(entityMap.get("extension"));
oCustomProperties.ifPresent(
o -> entityMap.put(String.format("%sCustomProperty", entityType), o));