serge-web/serge-web

View on GitHub
client/src/Views/ChannelTabsContainer/helpers/DefaultModel.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function setDefaultModel has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const setDefaultModel = (allChannels: ChannelTypes[]) => {
  const hasMap = allChannels.find(({ name }) => name.toLowerCase() === 'mapping')
  const setTabContent = (channel: ChannelTypes) => ({
    type: 'tab',
    id: channel.uniqid,
Severity: Minor
Found in client/src/Views/ChannelTabsContainer/helpers/DefaultModel.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status