ui: Fix missing import
Change-Id: Ieea21a59a8a609779bbb565f792f5cccaef6ea72
diff --git a/ui/src/tracks/custom_sql_table_slices/index.ts b/ui/src/tracks/custom_sql_table_slices/index.ts
index da4e175..696bec8 100644
--- a/ui/src/tracks/custom_sql_table_slices/index.ts
+++ b/ui/src/tracks/custom_sql_table_slices/index.ts
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+import {v4 as uuidv4} from 'uuid';
+
import {Disposable, DisposableCallback} from '../../base/disposable';
import {Actions} from '../../common/actions';
import {
@@ -51,7 +53,8 @@
constructor(args: NewTrackArgs) {
super(args);
- this.tableName = `customsqltableslicetrack_${uuidv4()}`;
+ this.tableName =
+ `customsqltableslicetrack_${uuidv4().split('-').join('_')}`;
}
abstract getSqlDataSource(): CustomSqlTableDefConfig;