Skip to content

Commit

Permalink
fix: removematch data init
Browse files Browse the repository at this point in the history
  • Loading branch information
radityaharya committed Feb 4, 2024
1 parent b1fb907 commit c17429d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/flow/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function Sidebar() {

return (
<aside
className="col-span-1 flex h-full max-h-screen flex-col justify-between border-r"
className="col-span-1 flex h-full max-h-screen flex-col justify-between border-r select-none"
onDragOver={onDragOver}
onDrop={onDrop}
>
Expand Down
4 changes: 2 additions & 2 deletions src/components/nodes/Filter/RemoveMatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ const RemoveMatch: React.FC<PlaylistProps> = React.memo(({ id, data }) => {
if (data) {
const parsedData = {
filterKey: data.filterKey,
operation: data.filterValue.substring(0, 2).trim(),
filterValue: data.filterValue.substring(2).trim(),
operation: data.filterValue?.substring(0, 2).trim(),
filterValue: data.filterValue?.substring(2).trim(),
};
form!.reset(parsedData);
form?.setValue("operation", parsedData.operation);
Expand Down

0 comments on commit c17429d

Please sign in to comment.