-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Opportunity picker and relation picker
- Loading branch information
1 parent
f2a4a95
commit 75d8c8d
Showing
11 changed files
with
65 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 6 additions & 9 deletions
15
front/src/modules/object-record/relation-picker/hooks/useEntitySelectSearch.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
...rc/modules/object-record/relation-picker/states/relationPickerPreselectedIdScopedState.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { atomFamily } from 'recoil'; | ||
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState'; | ||
|
||
export const relationPickerPreselectedIdScopedState = atomFamily< | ||
string, | ||
string | ||
export const relationPickerPreselectedIdScopedState = createScopedState< | ||
string | undefined | ||
>({ | ||
key: 'relationPickerPreselectedIdScopedState', | ||
default: (param) => param, | ||
defaultValue: undefined, | ||
}); |
12 changes: 5 additions & 7 deletions
12
...src/modules/object-record/relation-picker/states/relationPickerSearchFilterScopedState.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { atomFamily } from 'recoil'; | ||
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState'; | ||
|
||
export const relationPickerSearchFilterScopedState = atomFamily<string, string>( | ||
{ | ||
key: 'relationPickerSearchFilterScopedState', | ||
default: '', | ||
}, | ||
); | ||
export const relationPickerSearchFilterScopedState = createScopedState<string>({ | ||
key: 'relationPickerSearchFilterScopedState', | ||
defaultValue: '', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters