diff --git a/apps/meteor/client/views/omnichannel/departments/EditDepartment.js b/apps/meteor/client/views/omnichannel/departments/EditDepartment.js index ba9a489e56c9..9978f6d3d8d7 100644 --- a/apps/meteor/client/views/omnichannel/departments/EditDepartment.js +++ b/apps/meteor/client/views/omnichannel/departments/EditDepartment.js @@ -58,7 +58,7 @@ function EditDepartment({ data, id, title, reload, allowedToForwardData }) { const { department } = data || { department: {} }; - const initialTags = useMemo(() => department?.chatClosingTags ?? [], [department?.chatClosingTags]); + const [initialTags] = useState(() => department?.chatClosingTags ?? []); const [[tags, tagsText], setTagsState] = useState(() => [initialTags, '']); const hasTagChanges = useMemo(() => tags.toString() !== initialTags.toString(), [tags, initialTags]);