mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🚨 Fix build warnings
This commit is contained in:
@@ -36,6 +36,8 @@ export const LoadConfigComponent = () => {
|
||||
let newConfig: ConfigType = JSON.parse(fileText);
|
||||
|
||||
if (!newConfig.schemaVersion) {
|
||||
// client side logging
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(
|
||||
'a legacy configuration schema was deteced and migrated to the current schema'
|
||||
);
|
||||
|
||||
@@ -38,8 +38,9 @@ export const useGridstack = (
|
||||
// width of the wrapper (updating on page resize)
|
||||
const root: HTMLHtmlElement = useMemo(() => document.querySelector(':root')!, []);
|
||||
|
||||
if (!mainAreaWidth || !shapeSize || !wrapperColumnCount)
|
||||
if (!mainAreaWidth || !shapeSize || !wrapperColumnCount) {
|
||||
throw new Error('UseGridstack should not be executed before mainAreaWidth has been set!');
|
||||
}
|
||||
|
||||
const items = useMemo(
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user