diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.html b/src-ui/src/app/components/app-frame/global-search/global-search.component.html
index a434eaf23..5c71dd8c5 100644
--- a/src-ui/src/app/components/app-frame/global-search/global-search.component.html
+++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.html
@@ -30,10 +30,10 @@
(click)="primaryAction(type, item); $event.stopPropagation()"
[disabled]="disablePrimaryButton(type, item)"
(mouseenter)="onButtonHover($event)">
- @if (type === 'document') {
+ @if (type === DataType.Document) {
Open
- } @else if (type === 'workflow' || type === 'customField' || type === 'group' || type === 'user') {
+ } @else if (type === DataType.Workflow || type === DataType.CustomField || type === DataType.Group || type === DataType.User) {
Edit
} @else {
@@ -41,12 +41,12 @@
Filter documents
}
- @if (type !== 'workflow' && type !== 'customField' && type !== 'group' && type !== 'user') {
+ @if (type !== DataType.Workflow && type !== DataType.CustomField && type !== DataType.Group && type !== DataType.User) {