mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
fix(editor): Fix workflow history prune time limit (getting hours instead of days) (#7644)
This commit is contained in:
parent
48c068f97b
commit
3d5a485bcf
|
@ -70,6 +70,7 @@ const actions = computed<UserAction[]>(() =>
|
||||||
const isFirstItemShown = computed(
|
const isFirstItemShown = computed(
|
||||||
() => workflowHistory.value[0]?.versionId === route.params.versionId,
|
() => workflowHistory.value[0]?.versionId === route.params.versionId,
|
||||||
);
|
);
|
||||||
|
const evaluatedPruneTime = computed(() => Math.floor(workflowHistoryStore.evaluatedPruneTime / 24));
|
||||||
|
|
||||||
const loadMore = async (queryParams: WorkflowHistoryRequestParams) => {
|
const loadMore = async (queryParams: WorkflowHistoryRequestParams) => {
|
||||||
const history = await workflowHistoryStore.getWorkflowHistory(
|
const history = await workflowHistoryStore.getWorkflowHistory(
|
||||||
|
@ -318,7 +319,7 @@ watchEffect(async () => {
|
||||||
:actions="actions"
|
:actions="actions"
|
||||||
:requestNumberOfItems="requestNumberOfItems"
|
:requestNumberOfItems="requestNumberOfItems"
|
||||||
:shouldUpgrade="workflowHistoryStore.shouldUpgrade"
|
:shouldUpgrade="workflowHistoryStore.shouldUpgrade"
|
||||||
:evaluatedPruneTime="workflowHistoryStore.evaluatedPruneTime"
|
:evaluatedPruneTime="evaluatedPruneTime"
|
||||||
:isListLoading="isListLoading"
|
:isListLoading="isListLoading"
|
||||||
@action="onAction"
|
@action="onAction"
|
||||||
@preview="onPreview"
|
@preview="onPreview"
|
||||||
|
|
Loading…
Reference in a new issue