mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
do not try to extend fragments that don’t exist yet
This commit is contained in:
parent
de76f6404d
commit
a3abb94d3a
1 changed files with 4 additions and 2 deletions
|
@ -86,9 +86,11 @@ export const initializeFragment = (fragmentName) => {
|
|||
}
|
||||
|
||||
export const initializeFragments = () => {
|
||||
// extend fragment text
|
||||
// extend fragment text if fragment exists
|
||||
_.forEach(FragmentsExtensions, (newProperties, fragmentName) => {
|
||||
extendFragmentWithProperties(fragmentName, newProperties);
|
||||
if (Fragments[fragmentName]) {
|
||||
extendFragmentWithProperties(fragmentName, newProperties);
|
||||
}
|
||||
});
|
||||
// initialize fragments to create gql fragment object
|
||||
_.forEach(Fragments, (fragmentItem, fragmentName) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue