MCPcopy Create free account
hub / github.com/angular/examples / deleteTicket

Method deleteTicket

logistics-manager-app/src/fleet-db.ts:297–301  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

295 }
296
297 deleteTicket(id: string): boolean {
298 const initialLength = this.serviceQueue.length;
299 this.serviceQueue = this.serviceQueue.filter((t) => t.id !== id);
300 return this.serviceQueue.length < initialLength;
301 }
302
303 getUnit(id: string): FleetUnit | undefined {
304 return this.fleet.find((u) => u.id === id);

Callers 1

deleteServiceTicketFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected