feat: Initial setup of theme.
This commit is contained in:
17
src/services/Utils.js
Normal file
17
src/services/Utils.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import _ from 'underscore';
|
||||
|
||||
export const getErrorValue = (data, type) => {
|
||||
try {
|
||||
return _.omit(data, type);
|
||||
} catch {
|
||||
return data;
|
||||
}
|
||||
};
|
||||
|
||||
export const getFetchingValue = (data, type) => {
|
||||
try {
|
||||
return _.without(data, type);
|
||||
} catch (error) {
|
||||
return data;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user