fixed build issues

This commit is contained in:
ari committed 2022-04-26 23:02:38 -04:00
1 parent 738712e946
commit af600aaf57
3 files changed
+6 -5

No files matched your search

+4 -3
View File
@@ -13,7 +13,8 @@ RUN apk add --no-cache \
npm \
build-base \
python3-dev
RUN pip install -U wheel setuptools pip
RUN pip install -U wheel setuptools pip && \
npm i -g yarn
# <--- Python Dependencies -->
COPY api/setup.py /app/setup.py
@@ -22,8 +23,8 @@ RUN pip install . /app
# <--- Webapp Build -->
COPY webapp/ /app/web-builder
RUN cd /app/web-builder && \
npm install && \
npm run build && \
yarn && \
yarn build && \
cp -r /app/web-builder/build /app/web && \
rm -rf /app/web-builder
@@ -124,7 +124,7 @@ export const AutomationEditor: FC<Props> = ({
type: "",
subtype: ""
},
onSave: (t) => updateTrigger([...automation.trigger, t])
onSave: (t) => updateTrigger([...state.data.trigger, t])
});
},
(trigger, onSave) => setModalState({
@@ -9,7 +9,7 @@ export type EditorState = {
} | {
status: 'loading'
}
export type EditorStatus = EditorState[0];
export type EditorStatus = EditorState['status'];
export const useAutomatioEditorState = (
automation: AutomationData,