This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable */
|
||||
/* XXXeslint-disable */
|
||||
import store from "../store";
|
||||
import gzapi from "./gzapi";
|
||||
import _ from "../libs/lodash.min.js";
|
||||
@@ -6,10 +6,9 @@ import _ from "../libs/lodash.min.js";
|
||||
export default {
|
||||
get(formKey) {
|
||||
return new Promise(function getFormTemplate(resolve) {
|
||||
if (!_.has(store.state.formCustom, formKey)) {
|
||||
if (!_.has(store.state.formCustomTemplate, formKey)) {
|
||||
//fetch and populate the store
|
||||
gzapi.get("formcustom/" + formKey).then(res => {
|
||||
debugger;
|
||||
if (res.error) {
|
||||
throw res.error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user