Choose default department by default

Choose default department by default

Hi, 

I want to make the department dropdown in the chat window to be chosen, one possible solution I saw in chat API is to use this code: 

.chat.defaultdepartment();

I tried to use it but it is not working, the option that I passing to it not chosen?

Thanks,