Skip to content

Commit

Permalink
[EI-999] [web] fix: correct typo (indcator -> indicator)
Browse files Browse the repository at this point in the history
  • Loading branch information
yesolz committed Jul 23, 2024
1 parent 0159cad commit dbe2f96
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '../../../../store/querys/numerical-guidance/indicator-board-metadata.query';
import { useFetchIndicatorBoardMetadataList } from '../../../../store/querys/numerical-guidance/indicator-board-metadata.query';
import { useEffect, useMemo } from 'react';
import { convertIndcatorBoardMetadataList } from '@/app/business/services/numerical-guidance/view-model/indicator-board-metadata/indicator-board-metadata-list-view-model.service';
import { convertIndicatorBoardMetadataList } from '@/app/business/services/numerical-guidance/view-model/indicator-board-metadata/indicator-board-metadata-list-view-model.service';
import {
IndicatorInMetadataUnitTypes,
useIndicatorBoardMetadataStore,
Expand All @@ -31,7 +31,7 @@ export const useIndicatorBoardMetadataList = () => {
const convertedIndicatorBoardMetadataList = useMemo(() => {
if (!indicatorBoardMetadataList) return undefined;

return convertIndcatorBoardMetadataList(indicatorBoardMetadataList);
return convertIndicatorBoardMetadataList(indicatorBoardMetadataList);
}, [indicatorBoardMetadataList]);

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
useUpdateIndicatorIdsWithsectionIds,
useUploadIndicatorBoardMetadataImage,
} from '@/app/store/querys/numerical-guidance/indicator-board-metadata.query';
import { convertIndcatorBoardMetadataList } from '@/app/business/services/numerical-guidance/view-model/indicator-board-metadata/indicator-board-metadata-list-view-model.service';
import { convertIndicatorBoardMetadataList } from '@/app/business/services/numerical-guidance/view-model/indicator-board-metadata/indicator-board-metadata-list-view-model.service';
import { useMemo } from 'react';
import { useIndicatorBoardMetadataStore } from '@/app/store/stores/numerical-guidance/indicator-board-metadata.store';

Expand All @@ -26,7 +26,7 @@ export const useIndicatorBoardMetadataViewModel = (metadataId: string | undefine
const convertedIndicatorBoardMetadataList = useMemo(() => {
if (!indicatorBoardMetadataList) return undefined;

return convertIndcatorBoardMetadataList(indicatorBoardMetadataList);
return convertIndicatorBoardMetadataList(indicatorBoardMetadataList);
}, [indicatorBoardMetadataList]);

const indicatorBoardMetadata = metadataId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
useFetchIndicatorBoardMetadataList,
} from '../../../../store/querys/numerical-guidance/indicator-board-metadata.query';
import { useWorkspaceStore } from '../../../../store/stores/numerical-guidance/workspace.store';
import { convertIndcatorBoardMetadataList } from '@/app/business/services/numerical-guidance/view-model/indicator-board-metadata/indicator-board-metadata-list-view-model.service';
import { convertIndicatorBoardMetadataList } from '@/app/business/services/numerical-guidance/view-model/indicator-board-metadata/indicator-board-metadata-list-view-model.service';
import { useWorkspace } from '../../use-workspace.hook';

export const useSelectedIndicatorBoardMetadata = () => {
Expand All @@ -27,7 +27,7 @@ export const useSelectedIndicatorBoardMetadata = () => {
const convertedIndicatorBoardMetadataList = useMemo(() => {
if (!indicatorBoardMetadataList) return undefined;

return convertIndcatorBoardMetadataList(indicatorBoardMetadataList);
return convertIndicatorBoardMetadataList(indicatorBoardMetadataList);
}, [indicatorBoardMetadataList]);

const selectedMetadata = useMemo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ export class IndicatorBoardMetadataList extends Array<IndicatorBoardMetadata> {
}

iterate(callback: (metadata: IndicatorBoardMetadata) => IndicatorBoardMetadata): IndicatorBoardMetadataList {
return convertIndcatorBoardMetadataList(this.map(callback));
return convertIndicatorBoardMetadataList(this.map(callback));
}

findIndicatorBoardMetadataById(metadataId: string) {
return this.find((metadata) => metadata.id === metadataId);
}

deleteIndicatorBoardMetadata(metadataId: string) {
return convertIndcatorBoardMetadataList(this.filter((metadata) => metadata.id !== metadataId));
return convertIndicatorBoardMetadataList(this.filter((metadata) => metadata.id !== metadataId));
}

addIndicatorToMetadataById(metadataId: string | undefined, indicatorInfo: IndicatorInfoResponse) {
Expand Down Expand Up @@ -117,6 +117,6 @@ export class IndicatorBoardMetadataList extends Array<IndicatorBoardMetadata> {
});
}
}
export const convertIndcatorBoardMetadataList = (response: IndicatorBoardMetadataResponse[]) => {
export const convertIndicatorBoardMetadataList = (response: IndicatorBoardMetadataResponse[]) => {
return new IndicatorBoardMetadataList(response);
};

0 comments on commit dbe2f96

Please sign in to comment.