refac
This commit is contained in:
1 parent
9281adc564
commit
f192657dc9
2 files changed
+2
-2
No files matched your search
@@ -561,7 +561,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getFullModel = async (model) =>
|
const getFullModel = async (model: any) =>
|
||||||
workspaceModels.some((workspaceModel) => workspaceModel.id === model.id)
|
workspaceModels.some((workspaceModel) => workspaceModel.id === model.id)
|
||||||
? ((await getModelById(localStorage.token, model.id).catch(() => null)) ?? model)
|
? ((await getModelById(localStorage.token, model.id).catch(() => null)) ?? model)
|
||||||
: model;
|
: model;
|
||||||
|
|||||||
@@ -197,7 +197,7 @@
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const getFullModel = async (model) =>
|
const getFullModel = async (model: any) =>
|
||||||
(await getModelById(localStorage.token, model.id).catch(() => null)) ?? model;
|
(await getModelById(localStorage.token, model.id).catch(() => null)) ?? model;
|
||||||
|
|
||||||
const cloneModelHandler = async (model) => {
|
const cloneModelHandler = async (model) => {
|
||||||
|
|||||||
Reference in new issue
Block a user