Fix enable/disable edit mode (#1333)

This commit is contained in:
WillyJL
2023-09-03 17:54:12 +02:00
committed by GitHub
parent fc9d6f796e
commit d5c90a742b
11 changed files with 21 additions and 16 deletions

View File

@@ -36,7 +36,7 @@ export default function ContainerActionBar({ selected, reload }: ContainerAction
const getLowestWrapper = () =>
config.wrappers.sort((wrapper1, wrapper2) => wrapper1.position - wrapper2.position)[0];
if (process.env.DISABLE_EDIT_MODE === 'true') {
if (process.env.DISABLE_EDIT_MODE?.toLowerCase() === 'true') {
return null;
}