Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ const ServiceProvider: FC<ServiceProviderProps> = (props: ServiceProviderProps)
type='text'
error={formErrors.serviceProviderName}
dirty
forceUpdateValue

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The forceUpdateValue prop is being added to the InputText component. Ensure that this prop is supported by the component and behaves as expected. If this is a custom prop, verify its necessity and implementation to avoid unintended side effects.

/>
<div className={styles.formCTAs}>
{!isEditMode && <IconOutline.PlusCircleIcon />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ const Software: FC<SoftwareProps> = (props: SoftwareProps) => {
name='softwareName'
label='Software Name *'
value={selectedSoftwareName}
forceUpdateValue

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The forceUpdateValue prop is not a standard prop for InputText. Ensure that this prop is supported by the component or remove it if unnecessary. Using unsupported props can lead to unexpected behavior.

onChange={handleSoftwareNameChange}
placeholder='Type here the Software Name'
tabIndex={0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ const Subscriptions: FC<SubscriptionsProps> = (props: SubscriptionsProps) => {
type='text'
error={formErrors.subscriptionName}
dirty
forceUpdateValue

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The forceUpdateValue prop is added to the InputText component. Ensure that this prop is necessary and correctly implemented in the InputText component. If it forces a re-render or bypasses controlled component behavior, it could lead to unexpected side effects.

/>
<div className={styles.formCTAs}>
{!isEditMode && <IconOutline.PlusCircleIcon />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ConfirmModal: FC<ConfirmModalProps> = (props: ConfirmModalProps) => {
props.onClose?.()
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isLoading])
}, [isLoading, props.open])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
Adding props.open to the dependency array of useCallback is correct to ensure the handleClose function updates when props.open changes. However, ensure that props.open is indeed a necessary dependency and that its inclusion does not cause unnecessary re-renders or logic issues.


return (
<BaseModal
Expand Down
Loading