Skip to content

Commit d7cb93a

Browse files
author
clarencepalmer
committed
chore: remove check
1 parent 87f795e commit d7cb93a

3 files changed

Lines changed: 3 additions & 18 deletions

File tree

package-lock.json

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/super-editor/src/extensions/ai/ai-nodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ export const AiLoaderNode = Node.create({
4141
span.appendChild(img);
4242
return span;
4343
}
44-
});
44+
});

packages/superdoc/src/composables/use-ai.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ export function useAi({ emitAiHighlight, activeEditorRef }) {
124124
* @param {Boolean} value - Whether to show the AI layer
125125
*/
126126
const initAiLayer = (value = true) => {
127-
if (showAiLayer.__v_isRef) {
128-
showAiLayer.value = value;
129-
} else {
130-
console.warn('showAiLayer is not a ref in initAiLayer');
131-
}
127+
showAiLayer.value = value;
132128
};
133129

134130
/**

0 commit comments

Comments
 (0)