Skip to content

Commit

Permalink
🏗️ build(tsc): fix tsc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thrownullexception committed Feb 11, 2024
1 parent 222ced5 commit cfeb040
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/views/data/Details/DetailsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
import { useEntityToOneReferenceFields } from "frontend/hooks/entity/entity.store";
import { DataStates } from "frontend/lib/data/types";
import styled from "styled-components";
import { useEvaluateScriptContext } from "frontend/hooks/scripts";
import { useEntityViewStateMachine } from "../hooks/useEntityViewStateMachine";
import { viewSpecialDataTypes } from "../viewSpecialDataTypes";
import { evalutePresentationScript } from "../evaluatePresentationScript";
Expand All @@ -40,6 +41,7 @@ export function EntityDetailsView({
const entityCrudFields = useEntityCrudFields(entity, "details");
const defaultDateFormat = useAppConfiguration("default_date_format");
const getEntityFieldLabels = useEntityFieldLabels(entity);
const evaluateScriptContext = useEvaluateScriptContext();
const entityToOneReferenceFields = useEntityToOneReferenceFields(entity);
const entityFieldSelections = useEntityFieldSelections(entity);
const entityPresentationScript = useEntityConfiguration(
Expand Down Expand Up @@ -98,6 +100,7 @@ export function EntityDetailsView({
from: "details",
row: dataDetails?.data,
value: value$1,
...evaluateScriptContext,
}
);

Expand Down
3 changes: 3 additions & 0 deletions src/frontend/views/data/Table/useTableColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { ellipsis } from "shared/lib/strings";
import { ITableColumn } from "frontend/design-system/components/Table/types";
import { ActionButtons } from "frontend/design-system/components/Button/ActionButtons";
import { TableFilterType } from "shared/types/data";
import { useEvaluateScriptContext } from "frontend/hooks/scripts";
import { viewSpecialDataTypes } from "../viewSpecialDataTypes";
import { usePortalTableColumns } from "./portal";
import { evalutePresentationScript } from "../evaluatePresentationScript";
Expand Down Expand Up @@ -107,6 +108,7 @@ export const useTableColumns = (
const entityToOneReferenceFields = useEntityToOneReferenceFields(entity);
const entityCrudFields = useEntityCrudFields(entity, "table");
const defaultDateFormat = useAppConfiguration("default_date_format");
const evaluateScriptContext = useEvaluateScriptContext();
const entityPresentationScript = useEntityConfiguration(
"entity_presentation_script",
entity
Expand Down Expand Up @@ -171,6 +173,7 @@ export const useTableColumns = (
from: "details",
row: row.original,
value: value$1,
...evaluateScriptContext,
}
);

Expand Down

0 comments on commit cfeb040

Please sign in to comment.