Merge branch 'v3-ui' into fix/openapi-changes

This commit is contained in:
Michael Drury 2024-11-01 15:55:51 +00:00 committed by GitHub
commit 228a7526de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -80,7 +80,8 @@ export default class GridSocket extends BaseSocket {
}
emitRowUpdate(ctx: any, row: Row) {
const resourceId = ctx.params?.viewId || getSourceId(ctx)
const source = getSourceId(ctx)
const resourceId = source.viewId ?? source.tableId
const room = `${ctx.appId}-${resourceId}`
this.emitToRoom(ctx, room, GridSocketEvent.RowChange, {
id: row._id,
@ -89,7 +90,8 @@ export default class GridSocket extends BaseSocket {
}
emitRowDeletion(ctx: any, row: Row) {
const resourceId = ctx.params?.viewId || getSourceId(ctx)
const source = getSourceId(ctx)
const resourceId = source.viewId ?? source.tableId
const room = `${ctx.appId}-${resourceId}`
this.emitToRoom(ctx, room, GridSocketEvent.RowChange, {
id: row._id,