# Custom Plugin: New visualization toast showing "undefined" added

**URL:** <https://discuss.elastic.co/t/custom-plugin-new-visualization-toast-showing-undefined-added/302969>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [April 21, 2022, 10:19pm UTC](https://discuss.elastic.co/t/custom-plugin-new-visualization-toast-showing-undefined-added/302969 "2022-04-21T22:19:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gustavo\_Llermaly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_llermaly/32/92019_2.png) [@Gustavo\_Llermaly](https://discuss.elastic.co/u/Gustavo_Llermaly)\
**Post date:** [April 21, 2022, 10:19pm UTC](https://discuss.elastic.co/t/custom-plugin-new-visualization-toast-showing-undefined-added/302969/1 "2022-04-21T22:19:27Z")

</div>

Hello,

I'm creating a new visualization type, but when I add it to the dashboard , the toast shows "undefined" added. How can I set an initial value for this component to show it in the Toast?

Thanks!

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [April 25, 2022, 11:32pm UTC](https://discuss.elastic.co/t/custom-plugin-new-visualization-toast-showing-undefined-added/302969/2 "2022-04-25T23:32:23Z")

</div>

You can read up on some information about building plugins here [https://www.elastic.co/guide/en/kibana/current/development-plugin-resources.html](https://www.elastic.co/guide/en/kibana/current/development-plugin-resources.html)

I'd suggest grabbing the source from [https://github.com/elastic/kibana](https://github.com/elastic/kibana), try making your edits in the source, and then run Kibana in dev mode with `npm start` . You'll get source maps that will make debugging the issue easier using your browser's dev tools.

cc @flash1293 any more inputs appreciated at your convenience.

---

<div class="post-metadata">

**Author:** ![Gustavo\_Llermaly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_llermaly/32/92019_2.png) [@Gustavo\_Llermaly](https://discuss.elastic.co/u/Gustavo_Llermaly)\
**Post date:** [April 25, 2022, 11:48pm UTC](https://discuss.elastic.co/t/custom-plugin-new-visualization-toast-showing-undefined-added/302969/3 "2022-04-25T23:48:07Z")

</div>

Hello @rashmi I received some feedback in Slack. The change didnt fix the issue but it is a step in the right direction, and it is changing the initialInput property in the component constructor, setting the "title" property.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 23, 2022, 11:48pm UTC](https://discuss.elastic.co/t/custom-plugin-new-visualization-toast-showing-undefined-added/302969/4 "2022-05-23T23:48:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
