Skip to content

Commit

Permalink
ONI-255: Linter style changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
wzgliniecki committed Jun 7, 2024
1 parent a6ee238 commit a8f920c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/groups-management/TaskGroupHeadPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const renderHeadPanelTitle = (classes) => (
class TaskGroupHeadPanel extends FormPanel {
render() {
const {
edited, classes, readOnly, rights
edited, classes, readOnly, rights,
} = this.props;
const taskGroup = { ...edited };
const filterAllowedSources = (options) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pickers/TaskSourceAllowedPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Autocomplete, useTranslations, useModulesManager } from '@openimis/fe-c
import { TASK_CONTRIBUTION_KEY } from '../constants';

function TaskSourceAllowedPicker({
onChange, readOnly, required, withLabel, value
onChange, readOnly, required, withLabel, value,
}) {
const modulesManager = useModulesManager();
const { formatMessage } = useTranslations('tasksManagement');
Expand Down
2 changes: 1 addition & 1 deletion src/pickers/TaskSourcePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function TaskSourcePicker({
required,
withLabel,
value,
filterOptions
filterOptions,
}) {
const modulesManager = useModulesManager();
const { formatMessage } = useTranslations('tasksManagement');
Expand Down
5 changes: 3 additions & 2 deletions src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ function reducer(
? JSON.parse(taskGroup.jsonExt).task_sources.map((source) => ({ id: source, name: source }))
: [],
taskAllowedSources: taskGroup?.taskAllowedSources
? JSON.parse(taskGroup?.taskAllowedSources).task_allowed_sources.map((source) => ({ id: source, name: source }))
: [],
? JSON.parse(taskGroup?.taskAllowedSources).task_allowed_sources.map(
(source) => ({ id: source, name: source }),
) : [],
}))?.[0],
fetchingTaskGroup: false,
errorTaskGroup: formatGraphQLError(action.payload),
Expand Down

0 comments on commit a8f920c

Please sign in to comment.