Below is an example of a print basket: how to get the items and re-save them

  removeFromBasket(woId: number) {
    const printItems = localStorage.getItem('print-basket');
    if (printItems) {
      const printItemsArray = JSON.parse(printItems);
      const filteredPrintItemsArray = printItemsArray.filter((item: any) => item.woId !== woId);
      localStorage.setItem('print-basket', JSON.stringify(filteredPrintItemsArray));
    }
  }

 

 

 

Saved you some valuable time?

Received 100 so far from 4 kind contributors.