@politicalwatch/tipi-uikit 1.9.4 → 1.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@politicalwatch/tipi-uikit",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "main": "src/components/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -46,9 +46,9 @@ const getPeopleFromName = (string) => {
46
46
  if (string.hasOwnProperty('name')) return string;
47
47
  const regex_id = /\[.*\]/;
48
48
  const has_id = regex_id.exec(string);
49
- if (!has_id) return source.find((s) => s.name == string);
49
+ if (!has_id) return source.value.find((s) => s.name == string);
50
50
  const peopleId = has_id[0].replace('[', '').replace(']', '');
51
- return source.find((s) => s.id == peopleId);
51
+ return source.value.find((s) => s.id == peopleId);
52
52
  };
53
53
 
54
54
  const show = () => {