fix select speaker action

This commit is contained in:
Sara
2023-12-19 18:47:57 +01:00
parent 7ebeaf0eb9
commit 29a530e409

View File

@@ -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");