Skip to content

Commit 2a0d905

Browse files
Copilotsawka
andcommitted
chore: finalize aifilediff preview validation
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
1 parent 06b2e5c commit 2a0d905

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/app/view/aifilediff/aifilediff.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AiFileDiffViewModel implements ViewModel {
4343
this.nodeModel = nodeModel;
4444
this.tabModel = tabModel;
4545
this.env = waveEnv as AiFileDiffEnv;
46-
this.blockAtom = this.env?.wos?.getWaveObjectAtom<Block>(`block:${blockId}`) ?? WOS.getWaveObjectAtom<Block>(`block:${blockId}`);
46+
this.blockAtom = this.env.wos.getWaveObjectAtom<Block>(`block:${blockId}`);
4747
this.diffDataAtom = jotai.atom(null) as jotai.PrimitiveAtom<DiffData | null>;
4848
this.errorAtom = jotai.atom(null) as jotai.PrimitiveAtom<string | null>;
4949
this.loadingAtom = jotai.atom<boolean>(true);

0 commit comments

Comments
 (0)