fix(editor): Fix workflow history prune time limit (getting hours instead of days) (#7644)

This commit is contained in:
Csaba Tuncsik 2023-11-07 17:44:58 +01:00 committed by GitHub
parent 48c068f97b
commit 3d5a485bcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,7 @@ const actions = computed<UserAction[]>(() =>
const isFirstItemShown = computed(
() => workflowHistory.value[0]?.versionId === route.params.versionId,
);
const evaluatedPruneTime = computed(() => Math.floor(workflowHistoryStore.evaluatedPruneTime / 24));
const loadMore = async (queryParams: WorkflowHistoryRequestParams) => {
const history = await workflowHistoryStore.getWorkflowHistory(
@ -318,7 +319,7 @@ watchEffect(async () => {
:actions="actions"
:requestNumberOfItems="requestNumberOfItems"
:shouldUpgrade="workflowHistoryStore.shouldUpgrade"
:evaluatedPruneTime="workflowHistoryStore.evaluatedPruneTime"
:evaluatedPruneTime="evaluatedPruneTime"
:isListLoading="isListLoading"
@action="onAction"
@preview="onPreview"