mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 04:29:13 +00:00 
			
		
		
		
	Fixed issue where wrong data was being sent to the PATCH API call for table resulting in error while removing tags for columns (#8557)
This commit is contained in:
		
							parent
							
								
									e44fafad88
								
							
						
					
					
						commit
						af7f8b691a
					
				@ -609,7 +609,16 @@ const EntityTable = ({
 | 
			
		||||
        </div>
 | 
			
		||||
      );
 | 
			
		||||
    },
 | 
			
		||||
    [isReadOnly, editColumnTag, hasTagEditAccess, isTagLoading]
 | 
			
		||||
    [
 | 
			
		||||
      isReadOnly,
 | 
			
		||||
      editColumnTag,
 | 
			
		||||
      hasTagEditAccess,
 | 
			
		||||
      isTagLoading,
 | 
			
		||||
      handleTagSelection,
 | 
			
		||||
      handleEditColumnTag,
 | 
			
		||||
      fetchTagsAndGlossaryTerms,
 | 
			
		||||
      getRequestTagsElement,
 | 
			
		||||
    ]
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  const columns: ColumnsType<Column> = useMemo(
 | 
			
		||||
 | 
			
		||||
@ -13,7 +13,7 @@
 | 
			
		||||
 | 
			
		||||
import { AxiosError } from 'axios';
 | 
			
		||||
import { compare, Operation } from 'fast-json-patch';
 | 
			
		||||
import { isEmpty, isUndefined, omitBy } from 'lodash';
 | 
			
		||||
import { isEmpty, isUndefined } from 'lodash';
 | 
			
		||||
import { observer } from 'mobx-react';
 | 
			
		||||
import {
 | 
			
		||||
  EntityFieldThreadCount,
 | 
			
		||||
@ -490,7 +490,7 @@ const DatasetDetailsPage: FunctionComponent = () => {
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  const saveUpdatedTableData = (updatedData: Table) => {
 | 
			
		||||
    const jsonPatch = compare(omitBy(tableDetails, isUndefined), updatedData);
 | 
			
		||||
    const jsonPatch = compare(tableDetails, updatedData);
 | 
			
		||||
 | 
			
		||||
    return patchTableDetails(tableId, jsonPatch);
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user