mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
fix select speaker action
This commit is contained in:
@@ -14,7 +14,6 @@ type ParticipantList = {
|
|||||||
stateSelectedText: any;
|
stateSelectedText: any;
|
||||||
};
|
};
|
||||||
// NTH re-order list when searching
|
// NTH re-order list when searching
|
||||||
// HTH case-insensitive matching
|
|
||||||
const ParticipantList = ({
|
const ParticipantList = ({
|
||||||
transcriptId,
|
transcriptId,
|
||||||
participants,
|
participants,
|
||||||
@@ -45,8 +44,8 @@ const ParticipantList = ({
|
|||||||
setOneMatch(undefined);
|
setOneMatch(undefined);
|
||||||
setSelectedParticipant(participant);
|
setSelectedParticipant(participant);
|
||||||
setAction("Rename");
|
setAction("Rename");
|
||||||
} else if (!selectedParticipant) {
|
} else {
|
||||||
setSelectedParticipant(undefined);
|
setSelectedParticipant(participant);
|
||||||
setParticipantInput("");
|
setParticipantInput("");
|
||||||
setOneMatch(undefined);
|
setOneMatch(undefined);
|
||||||
setAction("Create to rename");
|
setAction("Create to rename");
|
||||||
@@ -187,6 +186,7 @@ const ParticipantList = ({
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
participants.refetch();
|
participants.refetch();
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
setAction(null);
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
setError(e, "There was an error renaming");
|
setError(e, "There was an error renaming");
|
||||||
|
|||||||
Reference in New Issue
Block a user