Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always provide a default width to prevent console error #9

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

stevebauman
Copy link
Contributor

When rendering the result of the toVue array to a Vue component without a chart width set, it throws the below console error:

Screenshot 2024-03-30 at 7 38 53 PM

This can be prevented if we just default to a 100% width if the width is null.

My Vue component:

<template>
    <apexchart
        :type="chart.type"
        :width="chart.width"
        :height="chart.height"
        :series="chart.series"
        :options="chart.options"
    />
</template>

<script>
export default {
    props: {
        chart: {
            type: Object,
            required: true,
        },
    },
};
</script>

@denisdulici denisdulici merged commit 2f3b4a7 into akaunting:master Apr 1, 2024
1 check passed
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.

2 participants