Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Jun 14, 2024
1 parent 7f0e247 commit d1c4025
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ import type {
InitialExpression
} from '../interfaces/expressions.interface';
import type { Coding } from 'fhir/r4';
import {
getCodeSystemLookupPromise,
LookupResponse,
lookupResponseIsValid
} from '../api/lookupCodeSystem';
import type { LookupResponse } from '../api/lookupCodeSystem';
import { getCodeSystemLookupPromise, lookupResponseIsValid } from '../api/lookupCodeSystem';
import type { FetchResourceCallback } from '../interfaces';

export async function addDisplayToInitialExpressionsCodings(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type { EnableWhenExpressions, EnableWhenItems } from './enableWhen.interf
import type { CalculatedExpression } from './calculatedExpression.interface';
import type { AnswerExpression } from './answerExpression.interface';
import type { Coding, QuestionnaireItemAnswerOption } from 'fhir/r4';
import { InitialExpression } from './initialExpression.interface';
import type { InitialExpression } from './initialExpression.interface';

export interface QuestionnaireModel {
itemTypes: Record<string, string>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { mutateRepeatEnableWhenExpressionInstances } from '../utils/enableWhenEx
import { questionnaireResponseStore } from './questionnaireResponseStore';
import { createQuestionnaireResponseItemMap } from '../utils/questionnaireResponseStoreUtils/updatableResponseItems';
import { insertCompleteAnswerOptionsIntoQuestionnaire } from '../utils/questionnaireStoreUtils/insertAnswerOptions';
import { InitialExpression } from '../interfaces/initialExpression.interface';
import type { InitialExpression } from '../interfaces/initialExpression.interface';

/**
* QuestionnaireStore properties and methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import {
getEnableWhenExpression,
getInitialExpression
} from '../getExpressionsFromItem';
import { InitialExpression } from '../../interfaces/initialExpression.interface';
import type { InitialExpression } from '../../interfaces/initialExpression.interface';

interface ReturnParamsRecursive {
variables: Variables;
Expand Down
2 changes: 1 addition & 1 deletion packages/smart-forms-renderer/src/utils/repopulateItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function generateItemsToRepopulate(populatedResponse: QuestionnaireRespon
const initialExpressions = questionnaireStore.getState().initialExpressions;

// This function is able to capture additions, however it is not able to capture deletions
let itemsToRepopulate = getItemsToRepopulate({
const itemsToRepopulate = getItemsToRepopulate({
sourceQuestionnaire,
tabs,
populatedResponse,
Expand Down

0 comments on commit d1c4025

Please sign in to comment.