Skip to content

Commit

Permalink
[web] 201 update version (#1404)
Browse files Browse the repository at this point in the history
* update version

* update label pre settings doc in iteration

* remove console.lo
  • Loading branch information
elliotmessi authored Nov 23, 2022
1 parent 53ecf92 commit e2fad36
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ymir/web/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 ymir/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ymir-web",
"version": "2.0.0.1021",
"version": "2.0.1.1123",
"scripts": {
"local": "APP_ROOT=../pages/demo1 umi dev",
"analyze": "cross-env UMI_ENV=dev ANALYZE=1 umi dev",
Expand Down
2 changes: 1 addition & 1 deletion ymir/web/src/components/form/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Uploader({
const [files, setFiles] = useState(null)

useEffect(() => {
value && value.length && setFiles(value)
value && value.length && setFiles(value.map(item => ({ name: item.replace(/^.*\/([^\/]+)$/, '$1') })))
}, [value])

function onFileChange({ file, fileList }) {
Expand Down
6 changes: 3 additions & 3 deletions ymir/web/src/components/task/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ function Label({ query = {}, hidden, datasets, keywords, ok = () => {}, bottom,
}, [])

useEffect(() => {
did &&
form.setFieldsValue({
datasetId: did,
datasetId: did || undefined,
keepAnnotations: type,
doc: url,
desc: url ? [url]: undefined,
})
url && setDoc(url)
}, [did])

useEffect(() => {
Expand Down
1 change: 0 additions & 1 deletion ymir/web/src/pages/project/iterations/stepAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ const StepAction = ({ steps, selected, iteration, callback = () => {} }) => {
}, [result?.state, currentStep?.state])

useEffect(() => {
console.log('steps, iteration:', steps, iteration)
if (!iteration || !steps.length) {
return
}
Expand Down

0 comments on commit e2fad36

Please sign in to comment.