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 06b2e5c commit 2a0d905Copy full SHA for 2a0d905
1 file changed
frontend/app/view/aifilediff/aifilediff.tsx
@@ -43,7 +43,7 @@ export class AiFileDiffViewModel implements ViewModel {
43
this.nodeModel = nodeModel;
44
this.tabModel = tabModel;
45
this.env = waveEnv as AiFileDiffEnv;
46
- this.blockAtom = this.env?.wos?.getWaveObjectAtom<Block>(`block:${blockId}`) ?? WOS.getWaveObjectAtom<Block>(`block:${blockId}`);
+ this.blockAtom = this.env.wos.getWaveObjectAtom<Block>(`block:${blockId}`);
47
this.diffDataAtom = jotai.atom(null) as jotai.PrimitiveAtom<DiffData | null>;
48
this.errorAtom = jotai.atom(null) as jotai.PrimitiveAtom<string | null>;
49
this.loadingAtom = jotai.atom<boolean>(true);
0 commit comments