client/src/Views/ChannelTabsContainer/helpers/DefaultModel.tsx
Function setDefaultModel
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const setDefaultModel = (allChannels: ChannelTypes[]) => {
const hasMap = allChannels.find(({ name }) => name.toLowerCase() === 'mapping')
const setTabContent = (channel: ChannelTypes) => ({
type: 'tab',
id: channel.uniqid,