store: addMessageSearchResults shouldn't accept null
It makes no sense to emit a add mutation with null, so let's forbid it.
This commit is contained in:
parent
8204c3481a
commit
982816ff20
@ -262,7 +262,7 @@ type Mutations = {
|
||||
serverHasSettings(state: State, value: State["serverHasSettings"]): void;
|
||||
messageSearchInProgress(state: State, value: State["messageSearchInProgress"]): void;
|
||||
messageSearchResults(state: State, value: State["messageSearchResults"]): void;
|
||||
addMessageSearchResults(state: State, value: State["messageSearchResults"]): void;
|
||||
addMessageSearchResults(state: State, value: NonNullable<State["messageSearchResults"]>): void;
|
||||
};
|
||||
|
||||
const mutations: Mutations = {
|
||||
|
Loading…
Reference in New Issue
Block a user