# Pasting examples: multiple ui-base config

**URL:** <https://discourse.nodered.org/t/pasting-examples-multiple-ui-base-config/85236>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [5 February 2024 22:54 UTC](https://discourse.nodered.org/t/pasting-examples-multiple-ui-base-config/85236 "2024-02-05T22:54:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [5 February 2024 22:54 UTC](https://discourse.nodered.org/t/pasting-examples-multiple-ui-base-config/85236/1 "2024-02-05T22:54:28Z")

</div>

When I paste examples from here to play around with Dashboard 2.0 examples, I end up adding additional ui-base nodes and I get errors to remove it.  
Are there any tricks that I missed? Or is there a best naming practice that I should follow?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [6 February 2024 06:17 UTC](https://discourse.nodered.org/t/pasting-examples-multiple-ui-base-config/85236/2 "2024-02-06T06:17:32Z")

</div>

It was about same with DB1, alot of cleanup after such imports. Just there was no errors so the cleanup was not forced.

I've found that sharing DB stuff should be done with smallest possible junks. If it can be shared as code, do it instead of sharing configured node. If it is configuration only, describe or make an image.  
All the rest is already even layout or ready made dashboard part, thus that would be acceptable.

For sure my post here will be missed and it doesn't make any big change but whoever can make it more visible, please do.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [6 February 2024 11:27 UTC](https://discourse.nodered.org/t/pasting-examples-multiple-ui-base-config/85236/3 "2024-02-06T11:27:18Z")

</div>

Yeah, it's an annoyance I'm working on trying to improve. There are two options:

### Removing After Import

1. In the Node-RED Editor, click the "Config Nodes" tab on the right-hand side.
2. Remove the newly added `ui-base` that was imported.
3. Update the new `ui-page` that was added to point to your existing `ui-base`

### Removing Before Import

1. When you copy and paste the `flow.json` into the Import window, scan the `json` and remove the object which specifies the `ui-base`
2. Once imported, you'll then need to update the `ui-page` entries that were imported to point to your existing `ui-base`

Have opened [Improve UX when importing flows · Issue #548 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/issues/548) to ensure this is tracked

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [6 February 2024 12:50 UTC](https://discourse.nodered.org/t/pasting-examples-multiple-ui-base-config/85236/4 "2024-02-06T12:50:28Z")

</div>

Thanks a lot. I think it is not too complicated to remember to delete the ui-base from the JSON file. Maybe on the Export page there could be an entry field where we could list all the node types that should be automatically excluded from the export. That would be an easy option for configuration items, not so much for actual nodes that have wires leading to them.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 February 2024 17:18 UTC](https://discourse.nodered.org/t/pasting-examples-multiple-ui-base-config/85236/5 "2024-02-06T17:18:12Z")

</div>

The technique I use is to Import, then, before deploying, move any pages to the original base, then delete the ui-base using Config Nodes in the menu. Then deploy.  
In fact I think this also works if you have already deployed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 February 2024 17:18 UTC](https://discourse.nodered.org/t/pasting-examples-multiple-ui-base-config/85236/6 "2024-02-20T17:18:28Z")

</div>

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