mirror of
https://github.com/rowyio/rowy.git
synced 2026-02-24 04:01:17 +01:00
spark modal title replace doc path with dash
This commit is contained in:
@@ -102,8 +102,15 @@ export default function SparksEditor({ requestSnackLog }) {
|
||||
fullWidth
|
||||
title={
|
||||
<>
|
||||
Edit “{tableState?.tablePath}” Sparks{" "}
|
||||
<Chip label="ALPHA" size="small" />
|
||||
Edit “
|
||||
{tableState?.tablePath
|
||||
?.split("/")
|
||||
.filter(function (_, i) {
|
||||
// replace IDs with subTables that appears at even indexes
|
||||
return i % 2 === 0;
|
||||
})
|
||||
.join("-")}
|
||||
” Sparks <Chip label="ALPHA" size="small" />
|
||||
</>
|
||||
}
|
||||
children={
|
||||
|
||||
Reference in New Issue
Block a user