Skip to content

Conversation

@nicolaskempf57
Copy link
Contributor

I'm using getDescriptionShort to handle the case of a dataset without description.

I encountered a reactive issue with the previous solution that I can't reproduce anymore with this new implementation.

Copy link
Contributor

@ThibaudDauce ThibaudDauce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removeMarkdown could use processSync to avoid all these computedAsync (I don't know how it will work with the SSR?)

Comment on lines 36 to 39
export async function getDescriptionShort(
description: string | null | undefined,
descriptionShort: string | null | undefined,
descriptionShort?: string | null | undefined,
): Promise<string> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this function take a Dataset instead? Or a generic object with description and description_short ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants