Use current columns

This commit is contained in:
Jon Herron 2022-11-28 13:59:38 -05:00
parent 0fb14f0e57
commit d1e2558af1
2 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import HttpService from '../services/HttpService';
type OwnProps = {
onSuccess: (..._args: any[]) => any;
columnArray: { Header: string; accessor: string};
columnArray: { Header: string; accessor: string };
orderBy: string;
filterBy: string;
buttonText?: string;
@ -79,7 +79,9 @@ export default function ProcessInstanceListSaveAsReport({
onChange={(e) => setIdentifier(e.target.value)}
/>
</label>
<button disabled={!hasIdentifier()} type="submit">{buttonText}</button>
<button disabled={!hasIdentifier()} type="submit">
{buttonText}
</button>
</form>
);
}

View File

@ -770,7 +770,7 @@ export default function ProcessInstanceListTable({
};
const saveAsReportComponent = () => {
// TODO onSuccess reload/select the new report
// TODO onSuccess reload/select the new report in the report search
const callback = (_: any) => {};
return (
<ProcessInstanceListSaveAsReport