mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Fix workflow history prune time limit (getting hours instead of days) (#7644)
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user