fix(editor): Prevent RMC from loading schema if it's already cached (#6695)

* fix(editor): Prevent RMC from loading schema if it's already cached
*  Adding new tests for RMC
* 👕 Fixing lint errors
* 👌 Updating inline loader styling
This commit is contained in:
Milorad FIlipović
2023-07-19 13:07:39 +02:00
committed by GitHub
parent cd0e41a6b4
commit a79aa19833
3 changed files with 62 additions and 10 deletions

View File

@@ -111,7 +111,10 @@ onMounted(async () => {
matchingColumns: nodeValues.matchingColumns,
};
}
await initFetching(hasSchema);
if (!hasSchema) {
// Only fetch a schema if it's not already set
await initFetching();
}
// Set default values if this is the first time the parameter is being set
if (!state.paramValue.value) {
setDefaultFieldValues();