Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3737486
D14187.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
891 B
Referenced Files
None
Subscribers
None
D14187.diff
View Options
diff --git a/native/profile/relationship-list.react.js b/native/profile/relationship-list.react.js
--- a/native/profile/relationship-list.react.js
+++ b/native/profile/relationship-list.react.js
@@ -295,6 +295,7 @@
const { setOptions } = navigation;
const prevNoCurrentTags = React.useRef(noCurrentTags);
+ const prevOnPressAdd = React.useRef(onPressAdd);
const loadingStatus = useSelector(loadingStatusSelector);
React.useEffect(() => {
let setSaveButtonDisabled;
@@ -304,9 +305,14 @@
setSaveButtonDisabled = false;
}
prevNoCurrentTags.current = noCurrentTags;
- if (setSaveButtonDisabled === undefined) {
+ if (
+ setSaveButtonDisabled === undefined &&
+ prevOnPressAdd.current === onPressAdd
+ ) {
return;
}
+ prevOnPressAdd.current = onPressAdd;
+
setOptions({
headerRight: () => (
<LinkButton
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 7:55 AM (10 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2846593
Default Alt Text
D14187.diff (891 B)
Attached To
Mode
D14187: [native] Fix adding several friends at once
Attached
Detach File
Event Timeline
Log In to Comment