mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-13 02:58:29 -04:00
Fix
This commit is contained in:
@@ -47,13 +47,14 @@ export function parseMentions(data: JSONContent): string[] {
|
||||
}
|
||||
|
||||
export const extensions = [
|
||||
StarterKit,
|
||||
Link,
|
||||
StarterKit.configure({}), // ✅ instantiate
|
||||
Link.configure({ openOnClick: true }),
|
||||
Image.extend({ renderText: () => '[image]' }),
|
||||
Mention, // user @mention
|
||||
Mention.configure({}),
|
||||
Iframe.extend({
|
||||
renderText: ({ node }) =>
|
||||
'[embed]' + node.attrs.src ? `(${node.attrs.src})` : '',
|
||||
renderText: ({ node }) => {
|
||||
return `[embed]${node.attrs.src ? `(${node.attrs.src})` : ''}`
|
||||
},
|
||||
}),
|
||||
]
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ export const useCompatibleLovers = (
|
||||
} else if (userId === null) setData(null)
|
||||
}, [userId])
|
||||
|
||||
console.log('debug', data)
|
||||
if (data && lover && options?.sortWithModifiers) {
|
||||
data.compatibleLovers = sortBy(data.compatibleLovers, (l) => {
|
||||
const modifier = !lover ? 1 : getLoversCompatibilityFactor(lover, l)
|
||||
|
||||
Reference in New Issue
Block a user