File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,11 @@ export default function Table({
434434 backgroundColor : "#d42020b3" ,
435435 } }
436436 icon = { < IconMinus /> }
437- onClick = { ( ) => deleteField ( fieldData , tableData . id ) }
437+ disabled = { layout . readOnly }
438+ onClick = { ( ) => {
439+ if ( layout . readOnly ) return ;
440+ deleteField ( fieldData , tableData . id ) ;
441+ } }
438442 />
439443 ) : settings . showDataTypes ? (
440444 < div className = "flex gap-1 items-center" >
Original file line number Diff line number Diff line change @@ -80,8 +80,10 @@ export default function WorkSpace() {
8080 const saveAsDiagram = window . name === "" || op === "d" || op === "lt" ;
8181
8282 if ( saveAsDiagram ) {
83- searchParams . delete ( "shareId" ) ;
84- setSearchParams ( searchParams ) ;
83+ if ( searchParams . has ( "shareId" ) ) {
84+ searchParams . delete ( "shareId" ) ;
85+ setSearchParams ( searchParams , { replace : true } ) ;
86+ }
8587 if ( ( id === 0 && window . name === "" ) || op === "lt" ) {
8688 await db . diagrams
8789 . add ( {
You can’t perform that action at this time.
0 commit comments