INNER CODE UNIT · JavaScript

index

ongres/stackgres · stackgres-k8s/src/admin-ui/src/store/index.js:290

      let index = state.sginstanceprofiles.find(p => (profile.data.metadata.name == p.name) && (profile.data.metadata.namespace == p.data.metadata.namespace) ); 

      if ( typeof index !== "undefined" ) {
        index.data = profile.data;
      } else {
        state.sginstanceprofiles.push( profile );    
      }

    },

    setCurrentNamespace (state, namespace) {
      state.currentNamespace = namespace;
    },

    flushResource(state, resource) {
      state[resource].length = 0;
    },

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…