Cast dispatcher payloads correctly when firing them
This commit is contained in:
parent
d5e70dfaa5
commit
71b356a9a4
4 changed files with 10 additions and 10 deletions
|
@ -66,10 +66,10 @@ export function showSpaceSettings(space: Room) {
|
|||
}
|
||||
|
||||
export const showAddExistingRooms = (space: Room): void => {
|
||||
dis.dispatch({
|
||||
dis.dispatch<OpenAddExistingToSpaceDialogPayload>({
|
||||
action: Action.OpenAddToExistingSpaceDialog,
|
||||
space,
|
||||
} as OpenAddExistingToSpaceDialogPayload);
|
||||
});
|
||||
};
|
||||
|
||||
export const showCreateNewRoom = async (space: Room): Promise<boolean> => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue