Skip to content

Commit

Permalink
Merge pull request #1399 from Shelf-nu/chore-dont-track-ui-error
Browse files Browse the repository at this point in the history
chore: remove unnessary error capturing on sentry
  • Loading branch information
DonKoko authored Nov 7, 2024
2 parents 1b43ffc + 145a523 commit 5501c28
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/modules/asset/service.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,6 @@ const unavailableBookingStatuses = [
BookingStatus.OVERDUE,
];

// Enhanced type safety for the query result
type AssetSearchResult = {
asset: AssetsFromViewItem | null;
} & {
[K in keyof AssetsFromViewItem]: AssetsFromViewItem[K];
};

/**
* Fetches assets from AssetSearchView
* This is used to have a more advanced search however its less performant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export async function action({ context, request, params }: ActionFunctionArgs) {
const { assetIds, bookingId } = parseData(formData, updateBookingSchema, {
additionalData: { userId },
message: "Please select a Booking",
shouldBeCaptured: false,
});

if (!assetIds?.length && !bookingId?.length) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export async function action({ context, request, params }: ActionFunctionArgs) {
const { kitIds, bookingId } = parseData(formData, updateBookingSchema, {
additionalData: { userId },
message: "Please select a Booking",
shouldBeCaptured: false,
});

if (!kitIds?.length && !bookingId?.length) {
Expand Down

0 comments on commit 5501c28

Please sign in to comment.