✨ Migrate tiles from id to type
This commit is contained in:
1 parent
43dc1cd70c
commit
525985b1dc
14 files changed
+59
-58
No files matched your search
@@ -14,7 +14,7 @@ async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||
|
||||
const config = getConfig(configName);
|
||||
|
||||
const dashDotWidget = config.widgets.find((x) => x.id === 'dashdot');
|
||||
const dashDotWidget = config.widgets.find((x) => x.type === 'dashdot');
|
||||
|
||||
if (!dashDotWidget) {
|
||||
return res.status(400).json({
|
||||
|
||||
@@ -13,7 +13,7 @@ async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||
}
|
||||
|
||||
const config = getConfig(configName);
|
||||
const dashDotWidget = config.widgets.find((x) => x.id === 'dashdot');
|
||||
const dashDotWidget = config.widgets.find((x) => x.type === 'dashdot');
|
||||
|
||||
if (!dashDotWidget) {
|
||||
return res.status(400).json({
|
||||
|
||||
Reference in new issue
Block a user