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 d0b3d60 commit f7d9886Copy full SHA for f7d9886
src/components/viewer/OperationViewer.tsx
@@ -121,6 +121,11 @@ export const OperationViewer: ComponentType<{
121
122
const [auth] = useAtom(authAtom)
123
124
+ const operationDoc = useMemo(
125
+ () => toCopilotOperation(operation!),
126
+ [operation],
127
+ )
128
+
129
// make eslint happy: we got Suspense out there
130
if (!operation) return null
131
@@ -130,11 +135,6 @@ export const OperationViewer: ComponentType<{
135
)
136
}
132
137
133
- const operationDoc = useMemo(
134
- () => toCopilotOperation(operation),
- [operation],
- )
-
138
const handleCopyShortCode = () => {
139
const shortCode = toShortCode(operation.id)
140
navigator.clipboard.writeText(shortCode)
0 commit comments