Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
feat: remove default grid (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo authored Oct 21, 2024
1 parent 63dad2c commit ca261fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
40 changes: 0 additions & 40 deletions domains/grid/utils/defaultGridConfig.ts

This file was deleted.

4 changes: 1 addition & 3 deletions domains/grid/utils/getUserGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export const getUserGrid = async (
address: Address
): Promise<Grid<GridWidgetWithoutCords>[]> => {
let config: PartialBy<Grid<GridConfigItem>, 'id'>[]
let config: PartialBy<Grid<GridConfigItem>, 'id'>[] = []
const userConfig = await getGridConfig(address)

// if user config is invalid we load default one
Expand All @@ -16,8 +16,6 @@ export const getUserGrid = async (
if (gridLog.enabled) {
gridLog('Invalid config', userConfig)
}

config = defaultGridConfig(address)
}

return configToGrid(config)
Expand Down

0 comments on commit ca261fe

Please sign in to comment.