Merged in fix/SW-3002-bug (pull request #2615)
fix(SW-3002): fix bug causing hotel page not found * fix(SW-3002): fix bug causing hotel page not found Approved-by: Anton Gunnarsson Approved-by: Linus Flood
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { notFound } from "next/navigation"
|
||||
|
||||
import SidePeek from "@scandic-hotels/design-system/SidePeek"
|
||||
|
||||
import Image from "@/components/Image"
|
||||
@@ -28,7 +26,7 @@ export default async function TripAdvisorSidePeek({
|
||||
|
||||
const tripAdvisorData = hotelRatings?.tripAdvisor
|
||||
if (!tripAdvisorData?.reviews.widgetScriptEmbedUrlIframe) {
|
||||
notFound()
|
||||
return null
|
||||
}
|
||||
|
||||
const awardsLogos = tripAdvisorData.awards
|
||||
|
||||
Reference in New Issue
Block a user