Removed unnecessary ?? operator.

This commit is contained in:
Flo2410 2024-01-28 19:38:54 +00:00
parent 854a0dcdde
commit 645a6ceba8
No known key found for this signature in database
GPG Key ID: 8ECB00AC5216DC7F

View File

@ -11,8 +11,8 @@ export default async function handler(req, res) {
const widgets = await widgetsFromConfig();
const searchWidget = widgets.find((w) => w.type === "search");
provider.url = searchWidget.options.url ?? "";
provider.suggestionUrl = searchWidget.options.suggestionUrl ?? "";
provider.url = searchWidget.options.url;
provider.suggestionUrl = searchWidget.options.suggestionUrl;
}
if (!provider.suggestionUrl) {