We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5c49ee commit b16c1afCopy full SHA for b16c1af
libs/backend/src/services/document/document.service.ts
@@ -151,7 +151,7 @@ export class DocumentSerivce {
151
) {
152
// ToDo: navie implementation
153
mutation.apps = mutation.apps
154
- .filter((app) => app.documentId !== null) // remove apps without documents
+ .filter((app) => !(app.appId === appId && app.documentId === null)) // remove apps without documents
155
.concat({ appId, documentId: document.id }) // add new document
156
157
const savedMutation = await this.mutationService.saveMutation({
0 commit comments