Skip to content

Commit

Permalink
fix: notify url splicing error (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pengap committed Mar 27, 2024
1 parent 1d5e37e commit 52a9329
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
NotificationStatesEnum,
NotificationTypeEnum,
notificationUrlSchema,
systemIconSchema,
userIconSchema,
} from '@teable/core';
import type { Prisma } from '@teable/db-main-prisma';
Expand Down Expand Up @@ -202,7 +201,7 @@ export class NotificationService {
case NotificationTypeEnum.CollaboratorMultiRowTag: {
const { baseId, tableId, recordId } = urlMeta || {};

return `${origin}/base/${baseId}/${tableId}?recordId=${recordId}`;
return `${origin}/base/${baseId}/${tableId}${recordId ? `?recordId=${recordId}` : ''}`;
}
}
}
Expand Down

0 comments on commit 52a9329

Please sign in to comment.