message: change the set access and volume to use the sc name on init
diff: @@ -160,23 +160,32 @@ export const DiskModal = withHandlePromise((props: DiskModalProps) => {
  );
  React.useEffect(() => {
  - if (!isEditing && isLoaded(_storageClassConfigMap)) {
  - if (source.requiresVolumeMode()) {
  - setVolumeMode(getDefaultSCVolumeMode(storageClassConfigMap));
  - }
  - if (source.requiresAccessModes()) {
  - setAccessMode(getDefaultSCAccessModes(storageClassConfigMap)[0]);
  - }
  - }
  + if (!isEditing && isLoaded(_storageClassConfigMap) && isLoaded(storageClasses)) {
  + let defaultStorageClass = null;
  - if (!isEditing && !storageClassName && isLoaded(storageClasses)) {
  - const defaultStorageClass = getGefaultStorageClass(getLoadedData(storageClasses, []));
  + if (!storageClassName) {
  + defaultStorageClass = getGefaultStorageClass(getLoadedData(storageClasses, []));
  if (defaultStorageClass) {
  setStorageClassName(getName(defaultStorageClass) || '');
  }
  }
  + if (source.requiresVolumeMode()) {
  + setVolumeMode(
  + getDefaultSCVolumeMode(storageClassConfigMap, storageClassName || defaultStorageClass),
  + );
  + }
  + if (source.requiresAccessModes()) {
  + setAccessMode(
  + getDefaultSCAccessModes(
  + storageClassConfigMap,
  + storageClassName || defaultStorageClass,
  + )[0],
  + );
  + }
  + }
  +
  // eslint-disable-next-line react-hooks/exhaustive-deps
  }, [isLoaded(_storageClassConfigMap), isLoaded(storageClasses)]);
  