Skip to content

Commit

Permalink
Don't merge data.settings into the config option
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 10, 2023
1 parent dca7a1e commit c12418a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/file-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ interface FileOptions extends SqrlConfig {
}

interface DataObj {
settings?: {
[key: string]: any
}
[key: string]: any
}

Expand Down Expand Up @@ -114,16 +111,6 @@ function renderFile (filename: string, data: DataObj, cb?: CallbackFn) {
var Config: FileOptions = getConfig((data as PartialConfig)) as FileOptions
// TODO: make sure above doesn't error. We do set filename down below

if (data.settings) {
// Pull a few things from known locations
if (data.settings.views) {
Config.views = data.settings.views
}
if (data.settings['view cache']) {
Config.cache = true
}
}

Config.filename = filename // Make sure filename is right

return tryHandleCache(Config, data, cb as CallbackFn)
Expand Down

0 comments on commit c12418a

Please sign in to comment.