Skip to content

Commit

Permalink
Update apps/meteor/client/views/omnichannel/departments/EditDepartmen…
Browse files Browse the repository at this point in the history
…t.js

Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
  • Loading branch information
tiagoevanp and ggazzo authored Aug 17, 2022
1 parent baf0ebf commit 97b81be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 97b81be

Please sign in to comment.