apply suggestion
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
@@ -13,8 +13,9 @@ const getItemByType = async (
|
||||
options?: AxiosRequestConfig
|
||||
) => {
|
||||
const { api, user } = apiContext;
|
||||
if (!api) throw new Error('No API instance available');
|
||||
if (!user?.Id) throw new Error('No User ID provided');
|
||||
|
||||
if (!api) throw new Error('[getItemByType] No API instance available');
|
||||
if (!user?.Id) throw new Error('[getItemByType] No User ID provided');
|
||||
|
||||
let response;
|
||||
switch (itemType) {
|
||||
|
||||
Reference in New Issue
Block a user