<p dir="auto">I found 2 interesting bugs when we want to create a dataset in SQL Lab:</p>
<ol dir="auto">
<li>When we create a dataset and provide some name and then want to do it again with the same name. In second dataset creation we got <code class="notranslate">Untitled Query 7 08/31/2022 17:58:02</code> name but input has <code class="notranslate">qwe1</code> name</li>
<li>[FIXED] When we reload page and create a duplicate name of dataset for example name=<code class="notranslate">qwe1</code> then modal window is disappeared and don't handle error from server.</li>
</ol>
<h3 dir="auto">Expected results</h3>
<p dir="auto">We handle server error response and show "Dataset [qwe1] already exists" on UI side to user.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">Server error response is not handled.</p>
<h4 dir="auto">Screenshots</h4>
<details open="" class="details-reset border rounded-2">
  <summary class="px-3 py-2">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-camera-video">
    <path d="M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"></path>
</svg>
    <span aria-label="Video description Screen.Recording.2022-08-31.at.17.57.51.mov" class="m-1">Screen.Recording.2022-08-31.at.17.57.51.mov</span>
    <span class="dropdown-caret"></span>
  </summary>

  <video src="https://user-images.githubusercontent.com/29536522/187712014-c11971cb-1634-4287-a540-163eba57b83a.mov" data-canonical-src="https://user-images.githubusercontent.com/29536522/187712014-c11971cb-1634-4287-a540-163eba57b83a.mov" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px">

  </video>
</details>

<details open="" class="details-reset border rounded-2">
  <summary class="px-3 py-2">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-camera-video">
    <path d="M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"></path>
</svg>
    <span aria-label="Video description Screen.Recording.2022-08-31.at.18.06.39.mov" class="m-1">Screen.Recording.2022-08-31.at.18.06.39.mov</span>
    <span class="dropdown-caret"></span>
  </summary>

  <video src="https://user-images.githubusercontent.com/29536522/187713956-c98bf383-b42f-49b4-b82e-5684272f4a7a.mov" data-canonical-src="https://user-images.githubusercontent.com/29536522/187713956-c98bf383-b42f-49b4-b82e-5684272f4a7a.mov" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px">

  </video>
</details>

<h3 dir="auto">Environment</h3>
<p dir="auto">(please complete the following information):</p>
<ul dir="auto">
<li>browser type and version:</li>
<li>superset version: <code class="notranslate">superset version</code></li>
<li>python version: <code class="notranslate">python --version</code></li>
<li>node.js version: <code class="notranslate">node -v</code></li>
<li>any feature flags active:</li>
</ul>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto">Add any other context about the problem here.<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michael-s-molina/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michael-s-molina">@michael-s-molina</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kgabryje/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kgabryje">@kgabryje</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/villebro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/villebro">@villebro</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lyndsiWilliams/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lyndsiWilliams">@lyndsiWilliams</a></p>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">Pypi version according to the README label: <code class="notranslate">0.28.1</code><br>
Commit hash: <code class="notranslate">60d5f89faaa6e76fdfb87d3ba8d76766d268a43f</code><br>
I am running a docker-based host that was created following the steps provided <a href="https://superset.incubator.apache.org/installation.html#start-with-docker" rel="nofollow">here</a>.</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">The following frontend routes should open with the correct styling and designed forms:</p>
<ul dir="auto">
<li><code class="notranslate">/superset/welcome</code></li>
<li><code class="notranslate">/chart/add</code></li>
<li><code class="notranslate">/superset/sqllab</code></li>
</ul>
<h3 dir="auto">Actual results</h3>
<p dir="auto">Note that the CSS files load successfully. There are no errors on the <code class="notranslate">Console</code> tab. No errors on requests either, according to the docker-compose log.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6828028/52798934-0fb49f80-3060-11e9-8ac8-f742c6273a86.png"><img src="https://user-images.githubusercontent.com/6828028/52798934-0fb49f80-3060-11e9-8ac8-f742c6273a86.png" alt="sqllab" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6828028/52799803-b6e60680-3061-11e9-8077-6317288905a4.png"><img src="https://user-images.githubusercontent.com/6828028/52799803-b6e60680-3061-11e9-8077-6317288905a4.png" alt="spinner" style="max-width: 100%;"></a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Just open the pages, either through entering the URL on the browser or clicking the menu.</p>