Skip to content

Commit

Permalink
Split files input properly (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito authored Jun 28, 2023
1 parent bc1d091 commit cf24157
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-portal-ui",
"version": "0.1.4",
"version": "0.1.5",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "~6.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/workPackage/workPackage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export function WorkPackage() {
)
return;
const url = `${WPS_URL}/work-packages`;
const fileIds = (files || "").split(/[,\s]+/);
const fileIds = (files || "").split(/[,\s]+/).filter((file) => file);
const data = {
dataset_id: dataset.id,
type: dataset.workType,
Expand Down

0 comments on commit cf24157

Please sign in to comment.