mirror of
				https://github.com/chartdb/chartdb.git
				synced 2025-11-03 21:43:23 +00:00 
			
		
		
		
	fix undo delete relationships
This commit is contained in:
		@@ -699,7 +699,7 @@ export const ChartDBProvider: React.FC<React.PropsWithChildren> = ({
 | 
			
		||||
                    ids.map((id) => db.deleteRelationship({ diagramId, id }))
 | 
			
		||||
                );
 | 
			
		||||
 | 
			
		||||
                if (options.updateHistory) {
 | 
			
		||||
                if (prevRelationships.length > 0 && options.updateHistory) {
 | 
			
		||||
                    addUndoAction({
 | 
			
		||||
                        action: 'removeRelationships',
 | 
			
		||||
                        redoData: { relationshipsIds: ids },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user