Skip to content

Commit

Permalink
Add permissions to output without asset yet
Browse files Browse the repository at this point in the history
Signed-off-by: Milouu <[email protected]>
  • Loading branch information
Milouu committed Jan 5, 2024
1 parent d50387e commit 201b5e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/routes/tasks/components/TaskOutputsDrawerSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ const TaskOutputSectionEntry = ({
title={identifier}
titleStyle="code"
alignItems="center"
permissions={
outputAsset?.kind === AssetKindT.model
? outputAsset.asset.permissions
: null
}
permissions={output?.permissions ?? null}
>
<TaskOutputRepresentation
kind={kind}
Expand Down
4 changes: 2 additions & 2 deletions src/types/TasksTypes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MetadataT, PermissionT } from './CommonTypes';
import { MetadataT, PermissionsT, PermissionT } from './CommonTypes';
import { DataSampleT } from './DataSampleTypes';
import { DatasetStubT } from './DatasetTypes';
import { FunctionT, AssetKindT } from './FunctionsTypes';
Expand Down Expand Up @@ -58,7 +58,7 @@ export type TaskInputT = {
};

export type TaskOutputT = {
permissions: PermissionT;
permissions: PermissionsT;
transient: boolean;
};

Expand Down

0 comments on commit 201b5e9

Please sign in to comment.