Skip to content

Commit

Permalink
fix: folder path passed instead of name for move filter (#246)
Browse files Browse the repository at this point in the history
Co-authored-by: Giuliano <75381134+giuliano176@users.noreply.github.com>
  • Loading branch information
geeky-abhishek and giuliano176 authored Nov 8, 2022
1 parent 1d2af2b commit 231be69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/views/settings/filters/parts/create-filter-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ const CreateFilterModal: FC<ComponentProps> = ({

const onConfirm = useCallback(() => {
const toSend = [...incomingFiltersCopy, requiredFilters];

setIncomingFilters?.(toSend);
modifyFilterRules(toSend).then(() => {
setFetchIncomingFilters?.(true);
Expand Down
1 change: 1 addition & 0 deletions src/views/settings/filters/parts/filter-action-rows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ const FilterActionRows: FC<FilterActionRowProps> = ({
setActiveIndex(index);
setOpen(true);
}, [setOpen, setActiveIndex, index]);

const onTagChange = useCallback(
(chip) => {
const requiredTag = chip.length > 1 ? chip[1] : chip[0];
Expand Down
2 changes: 1 addition & 1 deletion src/views/settings/filters/parts/move-to-folder-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const FolderSelectModal: FC<ComponentProps> = ({ compProps }): ReactElement => {
const previous = tempActions.slice();
previous[activeIndex] = {
id: previous[activeIndex]?.id,
actionFileInto: [{ folderPath: `${folderDestination.name}` }]
actionFileInto: [{ folderPath: `${folderDestination.path}` }]
};
setTempActions(previous);
setFolder(folderDestination);
Expand Down

0 comments on commit 231be69

Please sign in to comment.