Add the map in search view
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -3,3 +3,7 @@ import { GraphQLError } from "graphql/error/GraphQLError";
|
||||
export class AbsintheGraphQLError extends GraphQLError {
|
||||
readonly field: string | undefined;
|
||||
}
|
||||
|
||||
export type TypeNamed<T extends Record<string, any>> = T & {
|
||||
__typename: string;
|
||||
};
|
||||
|
||||
@@ -228,7 +228,6 @@ export class EventModel implements IEvent {
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||||
export function removeTypeName(entity: any): any {
|
||||
if (entity?.__typename) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
@@ -292,3 +291,7 @@ export function organizerDisplayName(event: IEvent): string | null {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
export function instanceOfIEvent(object: any): object is IEvent {
|
||||
return "organizerActor" in object;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user