Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaYousefpourM committed Jan 20, 2025
1 parent 47330a6 commit 852cef3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/pages/workshops/useWorkshopsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ export default function useWorkshopsPage() {
const notEligibleItems = parsedData.slice(0, index)
parsedData = parsedData.slice(index)
parsedData.push(...notEligibleItems)
console.log(parsedData)
const testItemIndex = parsedData.findIndex(
el => el.name === "Test Title"
)
if (testItemIndex !== -1)
parsedData.splice(testItemIndex, 1)
setParsedItemsList(parsedData);
setFileteredItems(parsedData);

Expand Down

0 comments on commit 852cef3

Please sign in to comment.