Skip to content

Commit

Permalink
fix: savign single types (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltsNotMike authored Mar 23, 2022
1 parent 98946cc commit 795b159
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const NavigationItemForm = ({
const pathSourceName = isExternal ? 'externalPath' : 'path';

const submitDisabled =
(form.type === navigationItemType.INTERNAL && isNil(get(form, `${inputsPrefix}related`))) ||
(form.type === navigationItemType.INTERNAL && !isSingleSelected && isNil(get(form, `${inputsPrefix}related`))) ||
(form.type === navigationItemType.WRAPPER && isNil(get(form, `${inputsPrefix}title`)));

const debouncedSearch = useCallback(
Expand Down

0 comments on commit 795b159

Please sign in to comment.