diff --git a/ui/v2.5/src/models/list-filter/criteria/factory.ts b/ui/v2.5/src/models/list-filter/criteria/factory.ts index 0916c030420..a2e18c08f15 100644 --- a/ui/v2.5/src/models/list-filter/criteria/factory.ts +++ b/ui/v2.5/src/models/list-filter/criteria/factory.ts @@ -165,8 +165,8 @@ export function makeCriteria(type: CriterionType = "none") { case "synopsis": case "description": return new StringCriterion(new StringCriterionOption(type, type)); - case "code": - return new StringCriterion(new StringCriterionOption("scene_code", type)); + case "scene_code": + return new StringCriterion(new StringCriterionOption(type, type, "code")); case "interactive": return new InteractiveCriterion(); case "captions": diff --git a/ui/v2.5/src/models/list-filter/scenes.ts b/ui/v2.5/src/models/list-filter/scenes.ts index 5d3dccd9101..73b0185ee75 100644 --- a/ui/v2.5/src/models/list-filter/scenes.ts +++ b/ui/v2.5/src/models/list-filter/scenes.ts @@ -39,7 +39,6 @@ const sortByOptions = [ "interactive", "interactive_speed", "perceptual_similarity", - "code", ...MediaSortByOptions, ].map(ListFilterOptions.createSortBy); @@ -52,7 +51,7 @@ const displayModeOptions = [ const criterionOptions = [ createStringCriterionOption("title"), - createStringCriterionOption("code"), + createStringCriterionOption("scene_code"), createMandatoryStringCriterionOption("path"), createStringCriterionOption("details"), createStringCriterionOption("director"), diff --git a/ui/v2.5/src/models/list-filter/types.ts b/ui/v2.5/src/models/list-filter/types.ts index e4746c0cb5c..8d5fb9d1e70 100644 --- a/ui/v2.5/src/models/list-filter/types.ts +++ b/ui/v2.5/src/models/list-filter/types.ts @@ -126,4 +126,4 @@ export type CriterionType = | "ignore_auto_tag" | "file_count" | "description" - | "code"; + | "scene_code";