Skip to content

Commit b16c1af

Browse files
committed
fix: all app instances are removed
1 parent a5c49ee commit b16c1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/backend/src/services/document/document.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class DocumentSerivce {
151151
) {
152152
// ToDo: navie implementation
153153
mutation.apps = mutation.apps
154-
.filter((app) => app.documentId !== null) // remove apps without documents
154+
.filter((app) => !(app.appId === appId && app.documentId === null)) // remove apps without documents
155155
.concat({ appId, documentId: document.id }) // add new document
156156

157157
const savedMutation = await this.mutationService.saveMutation({

0 commit comments

Comments
 (0)