Skip to content

Commit

Permalink
#25 Fix ResourceListInput not setting values
Browse files Browse the repository at this point in the history
  • Loading branch information
Polleps committed Mar 13, 2023
1 parent 61888cb commit f143cd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data-browser/src/components/forms/InputResourceArray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default function InputResourceArray({
}

function handleRemove(index: number) {
array.splice(index, 1);
const newArray = [...array];
newArray.splice(index, 1);
setArray(newArray);
}

Expand Down
2 changes: 1 addition & 1 deletion react/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export function useArray(
// https://github.com/atomicdata-dev/atomic-data-browser/issues/85
return stableEmptyArray.current;
}
}, [value]);
}, [value, resource, propertyURL]);

return [values as string[], set];
}
Expand Down

0 comments on commit f143cd0

Please sign in to comment.