Merge branch 'v3-ui' of github.com:Budibase/budibase into views-openapi

This commit is contained in:
mike12345567 2024-11-01 16:40:48 +00:00
commit c2f7f4a75e
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,