diff --git a/js/entity_browser.common.js b/js/entity_browser.common.js
index fd9c231..6ee5649 100644
--- a/js/entity_browser.common.js
+++ b/js/entity_browser.common.js
@@ -107,7 +107,7 @@
     }

     // Ensure unique entities are selected.
-    combined_entities = _.unique(combined_entities);
+    combined_entities = [...new Set(combined_entities)];

     // Having more elements than cardinality should never happen, because
     // server side authentication should prevent it, but we handle it here
