fix(SW-2547): filter out cities and hotel with isPublished=false
This commit is contained in:
committed by
Michael Zetterberg
parent
e38fceb237
commit
6a2bb5ac2d
@@ -479,6 +479,7 @@ export const locationsSchema = z.object({
|
||||
.transform((data) =>
|
||||
data
|
||||
.filter((node) => !!node)
|
||||
.filter((node) => !!node.isPublished)
|
||||
.filter((node) => {
|
||||
if (node.type === "hotels") {
|
||||
if (!node.operaId) {
|
||||
|
||||
Reference in New Issue
Block a user