Skip to content

Commit

Permalink
chore: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smarcet committed Nov 7, 2024
1 parent fab5a91 commit a73152c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"moment-duration-format": "^2.3.2",
"moment-timezone": "^0.5.33",
"node-sass": "^7.0.1",
"openstack-uicore-foundation": "4.1.91-beta.7",
"openstack-uicore-foundation": "4.1.91-beta.8",
"path-browserify": "^1.0.1",
"postcss-loader": "^6.2.1",
"process": "^0.11.10",
Expand Down
6 changes: 2 additions & 4 deletions src/components/forms/event-material-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ class EventMaterialForm extends React.Component {
errors: props.errors
};

this.fileUploadUrl = `${window.FILE_UPLOAD_API_BASE_URL}/api/v1/files/upload`;

this.handleChange = this.handleChange.bind(this);
this.handleChangeMUType = this.handleChangeMUType.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
Expand Down Expand Up @@ -287,7 +285,7 @@ class EventMaterialForm extends React.Component {
onUploadComplete={this.onMediaUploadComplete}
value={mediaInputValue}
mediaType={slideMediaType}
postUrl={this.fileUploadUrl}
postUrl={`${window.FILE_UPLOAD_API_BASE_URL}/api/v1/files/upload`}
error={hasErrors("slide", errors)}
djsConfig={{ withCredentials: true }}
parallelChunkUploads
Expand Down Expand Up @@ -358,7 +356,7 @@ class EventMaterialForm extends React.Component {
value={mediaInputValue}
mediaType={media_type}
onRemove={this.handleRemoveFile}
// postUrl={this.fileUploadUrl}
postUrl={`${window.FILE_UPLOAD_API_BASE_URL}/api/v1/files/upload`}
error={hasErrors(media_type.name, errors)}
djsConfig={{ withCredentials: true }}
parallelChunkUploads
Expand Down
20 changes: 4 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9846,10 +9846,10 @@ open@^8.0.9:
is-docker "^2.1.1"
is-wsl "^2.2.0"

[email protected].4:
version "4.1.91-beta.4"
resolved "https://registry.yarnpkg.com/openstack-uicore-foundation/-/openstack-uicore-foundation-4.1.91-beta.4.tgz#23484a24e864b4dd5915e731e038bfd0a286ba89"
integrity sha512-HyBFsRc7pGpq2uI+rMb9Keg0ikClTk8xC9UhIt1hzV/GndZ3E6OULRS5tLv8wvDQC86NIQg7sbDmHejH/DvMwA==
[email protected].8:
version "4.1.91-beta.8"
resolved "https://registry.yarnpkg.com/openstack-uicore-foundation/-/openstack-uicore-foundation-4.1.91-beta.8.tgz#7e02f341768f02ff3c9b5a829e0163168599ce09"
integrity sha512-MdZZjQ772/gOOB8gR1pnzy5/rYISH/sJI+9NeyIB5KH246e/lsywn/vUe9sGB87L2yTFJ7Ha2brzryfrN8UNOw==

optionator@^0.9.1:
version "0.9.4"
Expand Down Expand Up @@ -9901,13 +9901,6 @@ p-limit@^3.0.2, p-limit@^3.1.0:
dependencies:
yocto-queue "^0.1.0"

p-limit@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-6.1.0.tgz#d91f9364d3fdff89b0a45c70d04ad4e0df30a0e8"
integrity sha512-H0jc0q1vOzlEk0TqAKXKZxdl7kX3OFUzCnNVUnq5Pc3DGo0kpeaMuPqxQn235HibwBEb0/pm9dgKTjXy66fBkg==
dependencies:
yocto-queue "^1.1.1"

p-locate@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07"
Expand Down Expand Up @@ -13470,11 +13463,6 @@ yocto-queue@^0.1.0:
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==

yocto-queue@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.1.1.tgz#fef65ce3ac9f8a32ceac5a634f74e17e5b232110"
integrity sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==

yoga-layout@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/yoga-layout/-/yoga-layout-2.0.1.tgz#4bc686abe2464f977866650ddccc1dbcf9f0d03c"
Expand Down

0 comments on commit a73152c

Please sign in to comment.