-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cscfc4 emscr 422v2 #169
Cscfc4 emscr 422v2 #169
Conversation
if (!formData) { | ||
return; | ||
} | ||
function isFormValid() { |
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 is an unused function
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.
Can be removed.
</div> | ||
<div className="col-6"> | ||
<div | ||
style={{ display: 'flex', flexDirection: 'column', gap: '20px' }} |
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.
Why does this need a styling container when the same component in crosswalk modal doesn't? If it's necessary, should it be in form.styles?
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.
No idea what this is for, haven't written it. Most likely redundant.
@@ -31,23 +48,35 @@ export default function TargetAndSourceSchemaSelector({ | |||
createNew, | |||
schemaSelectorDisabled, | |||
}: CrosswalkFormProps) { | |||
const user: any = useSelector(selectLogin()); |
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.
type is User
setSelectedSourceWorkspace(e); | ||
}} | ||
> | ||
{workspaceValues.map((format) => ( |
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.
Format?
); | ||
} else { | ||
setTargetSchemas( | ||
defaultSchemas.filter((item) => item.organization !== '') |
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.
Shouldn't this be done like the owner is, so you get all organizations in the item.organization, and then check if it includes the organization whose workspace the modal was opened from? The group pid is already passed to the modals, so you just need to thread it through CrosswalkFormFields to get it here as well.
Although as discussed, eventually we'll want to implement this so that the selected filter determines what to fetch from the backend, so I don't know how much more effort we want to put to the interim solution.
No description provided.