delete comments from flow of the hub

This commit is contained in:
Ruben Fiszel
2022-12-29 12:49:27 +01:00
parent f698d7800c
commit 12f3d68dcb
2 changed files with 2 additions and 0 deletions
@@ -40,6 +40,7 @@
async function viewFlow(obj: { flow_id: number }): Promise<void> {
const hub = await FlowService.getHubFlowById({ id: obj.flow_id })
delete hub['comments']
flowViewerFlow = hub
flowViewer.openDrawer?.()
}
@@ -43,6 +43,7 @@
selectedId = 'settings-graph'
} else if (hubId) {
const hub = await FlowService.getHubFlowById({ id: Number(hubId) })
delete hub['comments']
flow.path = `u/${$userStore?.username}/flow_${hubId}`
Object.assign(flow, hub.flow)
flow = flow