Skip to content

Commit c4d067c

Browse files
x1archgemini-code-assist[bot]
authored andcommitted
fix note load from previous variant
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 75471fd commit c4d067c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/server/src/share/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function register(router: Router) {
167167

168168
const { parentShareId, shareId } = req.params;
169169

170-
const note = shareId ? (shaca.aliasToNote[shareId] || shaca.notes[shareId]) : (shaca.aliasToNote[parentShareId] || shaca.notes[parentShareId]);
170+
const note = shaca.aliasToNote[shareId] || shaca.notes[shareId];
171171
if (note){
172172
note.parentId = parentShareId
173173
}

0 commit comments

Comments
 (0)