fix: conflicting fetch with /api/convos

This commit is contained in:
Daniel Avila 2023-03-18 14:28:10 -04:00
parent 0f54ffd8b4
commit b97594c000
10 changed files with 199 additions and 90 deletions

View file

@ -16,9 +16,9 @@ const currentSlice = createSlice({
const q = action.payload;
state.query = q;
if (!q || q === '') {
if (q === '') {
state.search = false;
} else {
} else if (q?.length > 0 && !state.search) {
state.search = true;
}
},