-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Added attribute filter for skeleton points #9894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
| export const JobNotFoundComponent = React.memo((): JSX.Element => { | ||
| const history = useHistory(); | ||
| const handleGoToJobs = () => { | ||
| history.push('/jobs'); | ||
| }; | ||
| return ( | ||
| <Result | ||
| className='cvat-not-found' | ||
| status='404' | ||
| title='Sorry, but this job was not found' | ||
| subTitle='Please, be sure information you tried to get exist and you have access' | ||
| extra={ | ||
| <Button type='primary' onClick={handleGoToJobs}> | ||
| Go to Jobs (reset filters) | ||
| </Button> | ||
| } | ||
| /> | ||
| ); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be covered in #10028 with other not found components, I suggest to remove it
| }); | ||
|
|
||
| // If skeleton, add sublabel (point) attributes as nested fields | ||
| if (label.type === 'skeleton' && Array.isArray(label.sublabels)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (label.type === 'skeleton' && Array.isArray(label.sublabels)) { | |
| if (label.type === 'skeleton' && Array.isArray(label.structure.sublabels)) { |
|
|
||
| // If skeleton, add sublabel (point) attributes as nested fields | ||
| if (label.type === 'skeleton' && Array.isArray(label.sublabels)) { | ||
| label.sublabels.forEach((sublabel: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add type



Motivation and context
How has this been tested?
Checklist
developbranchLicense
Feel free to contact the maintainers if that's a concern.