mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fixes: toggle maintaince
This commit is contained in:
parent
21c10b8fbc
commit
4f2032303f
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import {
|
|||
orgEnvironmentVariableService,
|
||||
appEnvironmentService,
|
||||
orgEnvironmentConstantService,
|
||||
appsService,
|
||||
} from '@/_services';
|
||||
import { DndProvider } from 'react-dnd';
|
||||
import { HTML5Backend } from 'react-dnd-html5-backend';
|
||||
|
|
@ -431,7 +432,7 @@ const EditorComponent = (props) => {
|
|||
const toggleAppMaintenance = () => {
|
||||
const newState = !isMaintenanceOn;
|
||||
|
||||
appService.setMaintenance(appId, newState).then(() => {
|
||||
appsService.setMaintenance(appId, newState).then(() => {
|
||||
updateState({
|
||||
isMaintenanceOn: newState,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue