Skip to content

Commit

Permalink
[Enhancement #520] Update VocabularyContentChangeFilterData type attr…
Browse files Browse the repository at this point in the history
…ibute to changeType
  • Loading branch information
lukaskabc committed Nov 24, 2024
1 parent 776e98f commit fe71d6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/component/changetracking/AssetHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const AssetHistory: React.FC<AssetHistoryProps> = ({ asset }) => {
const filter = {
author: filterAuthor,
term: "",
type: filterType,
changeType: filterType,
attribute: filterAttribute,
};

Expand Down
2 changes: 1 addition & 1 deletion src/component/vocabulary/TermChangeFrequency.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const TermChangeFrequency: React.FC<TermChangeFrequencyProps> = (props) => {
const [filterData, setFilterData] =
useState<VocabularyContentChangeFilterData>({
term: "",
type: "",
changeType: "",
attribute: "",
author: "",
});
Expand Down
2 changes: 1 addition & 1 deletion src/component/vocabulary/TermChangeFrequencyUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const TermChangeFrequencyUI: React.FC<TermChangeFrequencyUIProps> = ({
applyFilterDebounced.current({
author: filterAuthor,
term: filterTerm,
type: filterType,
changeType: filterType,
attribute: filterAttribute,
});
}, [
Expand Down
4 changes: 2 additions & 2 deletions src/model/filter/VocabularyContentChangeFilterData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import VocabularyUtils from "../../util/VocabularyUtils";
export interface VocabularyContentChangeFilterData {
author: string;
term: string;
type: string;
changeType: string;
attribute: string;
}

export function getChangeTypeUri(
filterData: VocabularyContentChangeFilterData
): string {
switch (filterData.type) {
switch (filterData.changeType) {
case "history.type.persist":
return VocabularyUtils.PERSIST_EVENT;
case "history.type.update":
Expand Down

0 comments on commit fe71d6c

Please sign in to comment.