{isTaskActionEdit && hasEditAccess ? (
) : (
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsTabs.test.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsTabs.test.tsx
index c8ecd2623d2..7d80998390f 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsTabs.test.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsTabs.test.tsx
@@ -48,7 +48,7 @@ describe('Test Description Tabs Component', () => {
expect(await screen.findByText('New')).toBeInTheDocument();
});
- it('Should render the component relavant tab component', async () => {
+ it('Should render the component relevant tab component', async () => {
render(
);
const tabs = await screen.findAllByRole('tab');
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsTask.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsTask.tsx
index 3d40d03acd6..a7d3e7c675e 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsTask.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsTask.tsx
@@ -12,6 +12,7 @@
*/
import { diffArrays } from 'diff';
+import { TagLabel } from 'generated/type/tagLabel';
import React, { FC, Fragment, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -19,7 +20,6 @@ import {
Thread,
ThreadTaskStatus,
} from '../../../generated/entity/feed/thread';
-import { TagLabel } from '../../../generated/type/tagLabel';
import { TagsDiffView } from './TagsDiffView';
import { TagsTabs } from './TagsTabs';
import TagSuggestion from './TagSuggestion';
@@ -28,18 +28,14 @@ interface TagsTaskProps {
task: Thread['task'];
isTaskActionEdit: boolean;
hasEditAccess: boolean;
- currentTags: TagLabel[];
- value?: TagLabel[];
- onChange?: (newTags: TagLabel[]) => void;
+ onChange: (newTags: TagLabel[]) => void;
}
const TagsTask: FC
= ({
- value = [],
- onChange,
isTaskActionEdit,
hasEditAccess,
task,
- currentTags,
+ onChange,
}) => {
const { t } = useTranslation();
@@ -105,7 +101,10 @@ const TagsTask: FC = ({
{isRequestTag && (
{isTaskActionEdit && hasEditAccess ? (
-
+
) : (
suggestedTagsDiff
)}
@@ -115,8 +114,8 @@ const TagsTask: FC
= ({
{isTaskActionEdit && hasEditAccess ? (
) : (
diff --git a/openmetadata-ui/src/main/resources/ui/src/styles/app.less b/openmetadata-ui/src/main/resources/ui/src/styles/app.less
index ba8644087a8..e2748fe75e2 100644
--- a/openmetadata-ui/src/main/resources/ui/src/styles/app.less
+++ b/openmetadata-ui/src/main/resources/ui/src/styles/app.less
@@ -168,6 +168,10 @@ a[href].link-text-grey,
white-space: normal;
}
+.whitespace-pre-wrap {
+ white-space: pre-wrap;
+}
+
.mx-auto {
margin-right: auto;
margin-left: auto;