mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Merge pull request #762 from directus/fix-750
Replace `replaceAll` with `replace`
This commit is contained in:
@@ -263,7 +263,7 @@ export default defineComponent({
|
||||
if (part.startsWith('{{') === false) {
|
||||
return `<span class="text">${part}</span>`;
|
||||
}
|
||||
const fieldKey = part.replaceAll(/({|})/g, '').trim();
|
||||
const fieldKey = part.replace(/({|})/g, '').trim();
|
||||
const field = findTree(tree.value, fieldKey.split('.'));
|
||||
|
||||
if (!field) return '';
|
||||
|
||||
Reference in New Issue
Block a user